Lines Matching refs:std

43     std::vector<std::string> mimeTypes;
44 std::string tag;
45 std::int64_t timestamp;
50 std::string bundleName;
51 std::string setTime;
54 bool Encode(std::vector<std::uint8_t> &buffer) override;
55 bool Decode(const std::vector<std::uint8_t> &buffer) override;
56 bool DecodeTag(const std::vector<std::uint8_t> &buffer);
62 static constexpr const std::uint32_t MAX_RECORD_NUM = 512;
67 explicit PasteData(std::vector<std::shared_ptr<PasteDataRecord>> records);
69 void AddHtmlRecord(const std::string &html);
70 void AddKvRecord(const std::string &mimeType, const std::vector<uint8_t> &arrayBuffer);
71 void AddPixelMapRecord(std::shared_ptr<OHOS::Media::PixelMap> pixelMap);
72 void AddTextRecord(const std::string &text);
74 void AddWantRecord(std::shared_ptr<OHOS::AAFwk::Want> want);
75 void AddRecord(std::shared_ptr<PasteDataRecord> record);
77 std::vector<std::string> GetMimeTypes();
78 std::shared_ptr<std::string> GetPrimaryHtml();
79 std::shared_ptr<OHOS::Media::PixelMap> GetPrimaryPixelMap();
80 std::shared_ptr<std::string> GetPrimaryText();
81 std::shared_ptr<OHOS::Uri> GetPrimaryUri();
82 std::shared_ptr<std::string> GetPrimaryMimeType();
83 std::shared_ptr<OHOS::AAFwk::Want> GetPrimaryWant();
84 std::shared_ptr<PasteDataRecord> GetRecordAt(std::size_t index) const;
85 std::size_t GetRecordCount() const;
86 bool RemoveRecordAt(std::size_t number);
87 bool ReplaceRecordAt(std::size_t number, std::shared_ptr<PasteDataRecord> record);
88 bool HasMimeType(const std::string &mimeType);
95 std::vector<std::shared_ptr<PasteDataRecord>> AllRecords() const;
101 void SetBundleName(const std::string &bundleName);
102 std::string GetBundleName() const;
103 void SetOrginAuthority(const std::string &bundleName);
104 std::string GetOrginAuthority() const;
107 void SetTime(const std::string &time);
108 std::string GetTime();
111 void SetTag(std::string &tag);
112 std::string GetTag();
114 void SetAddition(const std::string &key, AAFwk::IInterface *value);
118 bool Encode(std::vector<std::uint8_t> &buffer) override;
119 bool Decode(const std::vector<std::uint8_t> &buffer) override;
134 void SetPasteId(const std::string &pasteId);
135 std::string GetPasteId() const;
136 std::string GetDeviceId() const;
138 static void ShareOptionToString(ShareOption shareOption, std::string &out);
141 static std::string sharePath;
142 static std::string WEBVIEW_PASTEDATA_TAG;
143 static const std::string DISTRIBUTEDFILES_TAG;
144 static const std::string PATH_SHARE;
145 static const std::string FILE_SCHEME_PREFIX;
146 static const std::string IMG_LOCAL_URI;
147 static const std::string SHARE_PATH_PREFIX;
148 static const std::string SHARE_PATH_PREFIX_ACCOUNT;
149 static const std::string REMOTE_FILE_SIZE;
150 std::string deviceId_;
151 static const std::string REMOTE_FILE_SIZE_LONG;
158 std::vector<std::shared_ptr<PasteDataRecord>> records_;
159 std::string orginAuthority_;
164 std::string pasteId_;
169 using Func = std::function<void(bool &ret, const std::vector<std::uint8_t> &buffer, TLVHead &head)>;
170 std::map<uint16_t, Func> decodeMap_;