KSync::UnknownSyncEntry Class Reference
UnknownSyncEntry is if a Konnector was requested to download a file and is unable to convert. More...
#include <unknownsyncee.h>
Inheritance diagram for KSync::UnknownSyncEntry:

Public Types | |
typedef QPtrList< UnknownSyncEntry > | PtrList |
enum | DownLoadMode { Tempfile = 0, ByteArray } |
Public Member Functions | |
UnknownSyncEntry (const QByteArray &array, const QString &path, Syncee *parent) | |
UnknownSyncEntry (const QString &fileName, const QString &path, Syncee *parent) | |
UnknownSyncEntry (const UnknownSyncEntry &entry) | |
QByteArray | array () const |
QString | path () const |
QString | fileName () const |
int | mode () const |
QDateTime | lastAccess () const |
void | setLastAccess (const QDateTime &time) |
QString | name () |
QString | id () |
QString | timestamp () |
QString | type () const |
bool | equals (SyncEntry *entry) |
SyncEntry * | clone () |
Detailed Description
UnknownSyncEntry is if a Konnector was requested to download a file and is unable to convert.Basically the UnknownSyncEntry either holds the fileName and the tempName or the ByteArray.
Definition at line 38 of file unknownsyncee.h.
Member Enumeration Documentation
|
A Konnector can be asked to download a file on sync. Either it can download the file to temporary place or it can copy the file to a bytearray. DownLoadMode defines the mode Definition at line 47 of file unknownsyncee.h. |
Constructor & Destructor Documentation
|
c'tor
Definition at line 26 of file unknownsyncee.cpp. |
|
c'tor
Definition at line 35 of file unknownsyncee.cpp. |
|
c'tor
Definition at line 44 of file unknownsyncee.cpp. References mArray, mHasAccess, mMode, mPath, and mTime. |
Member Function Documentation
|
the bytearray
Definition at line 58 of file unknownsyncee.cpp. |
|
path to the original place
Definition at line 63 of file unknownsyncee.cpp. |
|
the fileName of the temp file
Definition at line 68 of file unknownsyncee.cpp. |
|
the mode of the SyncEntry
Definition at line 73 of file unknownsyncee.cpp. |
|
if it's possible we can keep a ::stat here
Definition at line 78 of file unknownsyncee.cpp. |
|
set the last access
Definition at line 83 of file unknownsyncee.cpp. |
|
Return a string describing this entry. This is presented to the user as identifier for the entry, when user interaction is required. Implements KSync::SyncEntry. Definition at line 89 of file unknownsyncee.cpp. |
|
Return a unique id. This is used to uniquely identify the entry. Two entries having the same id are considered to be two variants of the same entry. No two entries of the same KSyncee data set must have the same id. Implements KSync::SyncEntry. Definition at line 94 of file unknownsyncee.cpp. Referenced by timestamp(). |
|
Return a time stamp representing the time of the last change. This is only used to compare, if an entry has changed or not. It is not used to define an order of changes. If an entry has been copied from one KSyncee data set to another KSyncee data set, the timestamp has to be the same on both entries. If the user has changed the entry in one data set the timestamp has to be different. Return QString::null, if there is no timestamp available. This means that the user has to manually select which entry is the new one. Implements KSync::SyncEntry. Definition at line 102 of file unknownsyncee.cpp. References id(). |
|
Return a string describing the type of the entry.
Implements KSync::SyncEntry. Definition at line 110 of file unknownsyncee.cpp. |
|
Return, if the two entries are equal. Two entries are considered to be equal, if they contain exactly the same information, including the same id and timestamp. Implements KSync::SyncEntry. Definition at line 115 of file unknownsyncee.cpp. References mArray, mFileName, mHasAccess, mMode, mPath, and mTime. |
|
Creates an exact copy of the this SyncEntry deleting the original is save.
Implements KSync::SyncEntry. Definition at line 136 of file unknownsyncee.cpp. |
The documentation for this class was generated from the following files: