98
98
U32 _ucs2_utf8(U8 *dst, U8 *src, U32 nchar);
99
99
U32 _utf8_ucs2(U8 *dst, U8 *src);
101
/** represents a contact pesonal message */
103
std::string PSM; // personal status message
104
std::string mediaApp; //iTunes, Winamp or keep it empty
105
std::string mediaType; // 'Music', 'Games' or 'Office'
106
bool mediaIsEnabled; // enable/disable the Current Media setting
107
std::string mediaFormat; //for example, "{0} - {1}"
108
std::vector<std::string> mediaLines; // [0] will be {0}, etc..
104
std::string PSM; /**< personal status message */
105
std::string mediaApp; /**< iTunes, Winamp or keep it empty */
106
std::string mediaType; /**< 'Music', 'Games' or 'Office' */
107
bool mediaIsEnabled; /**< enable/disable the Current Media setting */
108
std::string mediaFormat; /**< for example, "{0} - {1}" */
109
std::vector<std::string> mediaLines; /**< index 0 will be {0}, etc.. */
112
/** Represents the lists present on server side */
113
115
LST_AB = 1, /**< Address book */
141
134
unsigned char aCipherBytes[72];
144
// struct for offline messages
137
/** represents an offline message */
140
std::string from; /**< sender passport */
141
std::string fromFN; /**< sender nickname */
142
std::string id; /**< ID of this offline message */
152
145
std::string new_branch();
190
184
MSNC7 = 0x70000000
191
185
} MSNClientInformationFields;
187
/** Defines the file transfer type */
193
188
enum fileTransferType
195
FILE_TRANSFER_WITH_PREVIEW = 0x0,
196
FILE_TRANSFER_WITHOUT_PREVIEW = 0x1,
197
FILE_TRANSFER_BACKGROUND_SHARING = 0x4,
198
FILE_TRANSFER_BACKGROUND_SHARING_CUSTOM = 0xC // it is not a simple jpg file, there is a cab file inside it
190
FILE_TRANSFER_WITH_PREVIEW = 0x0, /**< With preview */
191
FILE_TRANSFER_WITHOUT_PREVIEW = 0x1, /**< Without preview */
192
FILE_TRANSFER_BACKGROUND_SHARING = 0x4, /**< Transfer of a sharing background */
193
// it is not a simple jpg file, there is a cab file inside it
194
FILE_TRANSFER_BACKGROUND_SHARING_CUSTOM = 0xC /**< Custom and not supported by libmsn yet */
197
/** Type of the error when a file transfer fails */
201
198
enum fileTransferError
203
FILE_TRANSFER_ERROR_USER_CANCELED,
204
FILE_TRANSFER_ERROR_UNKNOWN
200
FILE_TRANSFER_ERROR_USER_CANCELED, /**< The other user canceled */
201
FILE_TRANSFER_ERROR_UNKNOWN /**< Unknown error */
204
/** Represents a file transfer request */
210
int type; // 0 = no preview, 1 = has preview, 4 = background sharing
211
unsigned int sessionId;
212
std::string userPassport;
213
std::string filename; // path to the file
214
std::string friendlyname; // suggested name <- required when sending a file.
215
std::string preview; // base64 encoded png file.
216
unsigned long long filesize;
207
int type; /**< 0 = no preview, 1 = has preview, 4 = background sharing */
208
unsigned int sessionId; /**< Id of this session */
209
std::string userPassport; /**< passport of the origin or the destination */
210
std::string filename; /**< name the file to receive, or the path of the file to send */
211
std::string friendlyname; /**< suggested name <- required when sending a file */
212
std::string preview; /**< base64 encoded 96x96 png file, if applicable */
213
unsigned long long filesize; /**< size of the file to send or receive */
217
214
} fileTransferInvite;