kitchensync

KSync::UnknownSyncEntry Class Reference

#include <unknownsyncee.h>

Inheritance diagram for KSync::UnknownSyncEntry:

KSync::SyncEntry List of all members.

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 37 of file unknownsyncee.h.


Public Types

enum  DownLoadMode { Tempfile = 0, ByteArray }
typedef QPtrList< UnknownSyncEntryPtrList

Public Member Functions

 UnknownSyncEntry (Syncee *parent)
 UnknownSyncEntry (const QByteArray &array, const QString &path, Syncee *parent)
 UnknownSyncEntry (const QString &fileName, const QString &path, Syncee *parent)
 UnknownSyncEntry (const UnknownSyncEntry &entry)
 ~UnknownSyncEntry ()
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 ()
bool equals (SyncEntry *entry)
SyncEntryclone ()

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 46 of file unknownsyncee.h.


Constructor & Destructor Documentation

UnknownSyncEntry::UnknownSyncEntry ( const QByteArray &  array,
const QString &  path,
Syncee parent 
)

c'tor

Parameters:
array the ByteArray
path the path where the file was downloaded from
parent the parent Syncee

Definition at line 32 of file unknownsyncee.cpp.

UnknownSyncEntry::UnknownSyncEntry ( const QString &  fileName,
const QString &  path,
Syncee parent 
)

c'tor

Parameters:
fileName the place where the temp file is stored
path The path where the files comes from
parent is parent Syncee

Definition at line 42 of file unknownsyncee.cpp.

UnknownSyncEntry::UnknownSyncEntry ( const UnknownSyncEntry entry  ) 

c'tor

Definition at line 52 of file unknownsyncee.cpp.


Member Function Documentation

QByteArray UnknownSyncEntry::array (  )  const

the bytearray

Definition at line 67 of file unknownsyncee.cpp.

QString UnknownSyncEntry::path (  )  const

path to the original place

Definition at line 72 of file unknownsyncee.cpp.

QString UnknownSyncEntry::fileName (  )  const

the fileName of the temp file

Definition at line 77 of file unknownsyncee.cpp.

int UnknownSyncEntry::mode (  )  const

the mode of the SyncEntry

Definition at line 82 of file unknownsyncee.cpp.

QDateTime UnknownSyncEntry::lastAccess (  )  const

if it's possible we can keep a stat here

Definition at line 87 of file unknownsyncee.cpp.

void UnknownSyncEntry::setLastAccess ( const QDateTime &  time  ) 

set the last access

Definition at line 92 of file unknownsyncee.cpp.

QString UnknownSyncEntry::name (  )  [virtual]

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 98 of file unknownsyncee.cpp.

QString UnknownSyncEntry::id (  )  [virtual]

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 103 of file unknownsyncee.cpp.

QString UnknownSyncEntry::timestamp (  )  [virtual]

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 111 of file unknownsyncee.cpp.

bool UnknownSyncEntry::equals ( SyncEntry entry  )  [virtual]

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 119 of file unknownsyncee.cpp.

SyncEntry * UnknownSyncEntry::clone (  )  [virtual]

Creates an exact copy of the this SyncEntry deleting the original is save and does not influence the clone.

Syncee will be unset and SyncStates will be copied over as well.

Implements KSync::SyncEntry.

Definition at line 140 of file unknownsyncee.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys