Fission FSN
Loading...
Searching...
No Matches
fsShareTypes.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsShareTypes.h
4*
5* Purpose: Requests and results for sharing game moments
6*
7*********************************************************************/
8
9#ifndef fsShareTypeshdr
10#define fsShareTypeshdr
11
12#include <string>
13#include <vector>
14
16{
17 std::string path; // a real file, normally in the share cache
18 std::string mimeType; // "image/png"
19 int width = 0;
20 int height = 0;
21};
22
24{
25 std::string subject;
26 std::string text; // the player's message, store link already appended if the moment wants it
27 std::string url; // the store link on its own, for targets with a separate link slot
28 std::vector<fsShareFile> files;
29};
30
31// eDISMISSED means "cancelled or unknown": Android's chooser never says, so never reward a share.
40
42{
43 std::string id; // "system", "save", "steamScreenshots"
44 std::string labelKey; // localised button label: "shareTarget_<id>"
45 std::string fileExtension; // what this target wants rendered: ".png", or ".jpg" for Steam
46};
47
48#endif
fsShareResult
Definition fsShareTypes.h:33
@ eUNAVAILABLE
Definition fsShareTypes.h:37
@ eSHARED
Definition fsShareTypes.h:34
@ eDISMISSED
Definition fsShareTypes.h:35
@ eSAVED
Definition fsShareTypes.h:36
@ eERROR
Definition fsShareTypes.h:38
Definition fsShareTypes.h:16
std::string path
Definition fsShareTypes.h:17
std::string mimeType
Definition fsShareTypes.h:18
int height
Definition fsShareTypes.h:20
int width
Definition fsShareTypes.h:19
Definition fsShareTypes.h:24
std::string text
Definition fsShareTypes.h:26
std::vector< fsShareFile > files
Definition fsShareTypes.h:28
std::string url
Definition fsShareTypes.h:27
std::string subject
Definition fsShareTypes.h:25
Definition fsShareTypes.h:42
std::string id
Definition fsShareTypes.h:43
std::string labelKey
Definition fsShareTypes.h:44
std::string fileExtension
Definition fsShareTypes.h:45