#include <MediaSyncSource.h>
Public Member Functions | |
const StringBuffer & | getUrl () |
const StringBuffer & | getUsername () |
const StringBuffer & | getSwv () |
const int | getNextLUID () |
const unsigned int | getFilterBySize () |
const unsigned long | getFilterByDate () |
void | setUrl (const StringBuffer &v) |
void | setUsername (const StringBuffer &v) |
void | setSwv (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 | swv |
The current Client software version. | |
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.
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::swv [private] |
The current Client software version.
StringBuffer MediaSyncSourceParams::url [private] |
The Sync Server URL.
StringBuffer MediaSyncSourceParams::username [private] |
The current username.