00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
#include <kdebug.h>
00024
00025
#include "syncentry.h"
00026
00027
using namespace KSync;
00028
00029 SyncEntry::SyncEntry(
Syncee *sync )
00030 : mSyncee( sync ), mDontSync( false )
00031 {
00032 mState = Undefined;
00033 mSyncState = Undefined;
00034 }
00035
00036 SyncEntry::SyncEntry(
const SyncEntry &ent )
00037 {
00038
00039 mState = ent.
mState;
00040 mSyncee = ent.
mSyncee;
00041 mSyncState = ent.
mSyncState;
00042 mDontSync = ent.
mDontSync;
00043 }
00044
00045 SyncEntry::~SyncEntry()
00046 {
00047 }
00048
00049 void SyncEntry::setSyncee(
Syncee *syncee )
00050 {
00051 mSyncee = syncee;
00052 }
00053
00054 int SyncEntry::match(
SyncEntry* )
00055 {
00056
return -2;
00057 }
00058
00059 int SyncEntry::compareTo(
SyncEntry* )
00060 {
00061
return -2;
00062 }
00063
00064 int SyncEntry::state()
const
00065
{
00066
return mState;
00067 }
00068
00069 bool SyncEntry::wasAdded()
const
00070
{
00071
return ( mState == Added );
00072 }
00073
00074 bool SyncEntry::wasModified()
const
00075
{
00076
return ( mState == Modified );
00077 }
00078
00079 bool SyncEntry::wasRemoved()
const
00080
{
00081
return ( mState == Removed );
00082 }
00083
00084 void SyncEntry::setState(
int state )
00085 {
00086
00087 mState = state;
00088 }
00089
00090 void SyncEntry::setSyncState(
int state )
00091 {
00092 mSyncState = state;
00093 }
00094
00095 int SyncEntry::syncState()
const
00096
{
00097
return mSyncState;
00098 }
00099
00100 Syncee *
SyncEntry::syncee()
00101 {
00102
return mSyncee;
00103 }
00104
00105
00106 void SyncEntry::setId(
const QString& )
00107 {
00108 }
00109
00110 bool SyncEntry::mergeWith(
SyncEntry * )
00111 {
00112
return false;
00113 }
00114
00115 void SyncEntry::setDontSync(
bool dontSync )
00116 {
00117 mDontSync = dontSync;
00118 }
00119
00120
bool SyncEntry::dontSync()
const
00121
{
00122
return mDontSync;
00123 }
00124
00125 KPIM::DiffAlgo* SyncEntry::diffAlgo(
SyncEntry*,
SyncEntry* )
00126 {
00127
return 0;
00128 }