#include <MediaSyncSourceParams.h>
Public Member Functions | |
const StringBuffer & | getUrl () |
const StringBuffer & | getUsername () |
const StringBuffer & | getPassword () |
const StringBuffer & | getSwv () |
const StringBuffer & | getDeviceID () |
const StringBuffer & | getUserAgent () |
const int | getNextLUID () |
const unsigned int | getFilterBySize () |
const unsigned long | getFilterByDate () |
void | setUrl (const StringBuffer &v) |
void | setUsername (const StringBuffer &v) |
void | setPassword (const StringBuffer &v) |
void | setSwv (const StringBuffer &v) |
void | setDeviceID (const StringBuffer &v) |
void | setUserAgent (const StringBuffer &v) |
void | setNextLUID (const int v) |
void | setFilterBySize (const unsigned int v) |
void | setFilterByDate (const unsigned long v) |
Private Attributes | |
StringBuffer | url |
The Sync Server URL. | |
StringBuffer | username |
The current username. | |
StringBuffer | password |
The current password. | |
StringBuffer | swv |
The current Client software version. | |
StringBuffer | deviceID |
The device id. | |
StringBuffer | userAgent |
The user agent. | |
int | nextLUID |
Incremental number, used as the next LUID of media items. | |
unsigned int | filterBySize |
Can be set to enable a filter on media files (outgoing items only). | |
unsigned long | filterByDate |
Can be set to enable a filter on media files (outgoing items only). |
Server URL, Username and Swv are stored inside the MediaSyncSource cache to check its validity before every sync. filterBySize and filterByDate can be set to specify dynamic file filtering.
StringBuffer MediaSyncSourceParams::deviceID [private] |
The device id.
unsigned long MediaSyncSourceParams::filterByDate [private] |
Can be set to enable a filter on media files (outgoing items only).
If not 0, media files modified AFTER this date will be filtered out (not synced) The value is a unix timestamp, in UTC (seconds since 1970-01-01)
unsigned int MediaSyncSourceParams::filterBySize [private] |
Can be set to enable a filter on media files (outgoing items only).
If not 0, media files with size > filterBySize will be filtered out (not synced) The value is expressed in KBytes.
int MediaSyncSourceParams::nextLUID [private] |
Incremental number, used as the next LUID of media items.
The MediaSyncSource will use (and then increment) this value to send a unique item's key to the Server.
StringBuffer MediaSyncSourceParams::password [private] |
The current password.
StringBuffer MediaSyncSourceParams::swv [private] |
The current Client software version.
StringBuffer MediaSyncSourceParams::url [private] |
The Sync Server URL.
StringBuffer MediaSyncSourceParams::userAgent [private] |
The user agent.
StringBuffer MediaSyncSourceParams::username [private] |
The current username.