Fission FSN
Loading...
Searching...
No Matches
fsShareSheetServiceSave.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsShareSheetServiceSave.h
4*
5* Purpose: "Save to Pictures": copies the card into
6* <Pictures>/<game>/ and, unless told not to, shows it in
7* the file manager.
8*
9*********************************************************************/
10
11#ifndef fsShareSheetServiceSavehdr
12#define fsShareSheetServiceSavehdr
13
16
18{
19public:
20 // reveal: select the saved file in Finder / Explorer. That takes focus from the game, so a game
21 // that says where the picture went itself can turn it off.
22 explicit fsShareSheetServiceSave(std::string folderName, bool reveal = true);
23
24 std::vector<fsShareTarget> targetsGet() const override;
25 void share(const fsShareRequest& request, const std::string& targetId, DoneCallback done) override;
26 void update() override;
27
28 static const char* const kTargetId;
29
30private:
31 std::string mFolderName;
32 bool mReveal;
33 fsShareCompletions mCompletions;
34};
35
36#endif
Definition fsShareCompletions.h:20
Definition fsShareSheetService.h:20
std::function< void(fsShareResult, const std::string &detail)> DoneCallback
Definition fsShareSheetService.h:22
fsShareSheetServiceSave(std::string folderName, bool reveal=true)
Definition fsShareSheetServiceSave.cpp:10
static const char *const kTargetId
Definition fsShareSheetServiceSave.h:28
std::vector< fsShareTarget > targetsGet() const override
Definition fsShareSheetServiceSave.cpp:16
void update() override
Definition fsShareSheetServiceSave.cpp:58
void share(const fsShareRequest &request, const std::string &targetId, DoneCallback done) override
Definition fsShareSheetServiceSave.cpp:25
Definition fsShareTypes.h:24