-rw-r--r-- | kabc/resource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kabc/resource.cpp b/kabc/resource.cpp index 2f03927..d39fd6a 100644 --- a/kabc/resource.cpp +++ b/kabc/resource.cpp | |||
@@ -92,48 +92,53 @@ bool Resource::save( Ticket * ) | |||
92 | { | 92 | { |
93 | return false; | 93 | return false; |
94 | } | 94 | } |
95 | 95 | ||
96 | Ticket *Resource::createTicket( Resource *resource ) | 96 | Ticket *Resource::createTicket( Resource *resource ) |
97 | { | 97 | { |
98 | return new Ticket( resource ); | 98 | return new Ticket( resource ); |
99 | } | 99 | } |
100 | 100 | ||
101 | void Resource::removeAddressee( const Addressee& ) | 101 | void Resource::removeAddressee( const Addressee& ) |
102 | { | 102 | { |
103 | // do nothing | 103 | // do nothing |
104 | } | 104 | } |
105 | 105 | ||
106 | void Resource::cleanUp() | 106 | void Resource::cleanUp() |
107 | { | 107 | { |
108 | // do nothing | 108 | // do nothing |
109 | } | 109 | } |
110 | 110 | ||
111 | bool Resource::isSyncable() const | 111 | bool Resource::isSyncable() const |
112 | { | 112 | { |
113 | return (mSyncProfile != 0); | 113 | return (mSyncProfile != 0); |
114 | } | 114 | } |
115 | 115 | ||
116 | KSyncProfile* Resource::getSyncProfile() | ||
117 | { | ||
118 | return mSyncProfile; | ||
119 | } | ||
120 | |||
116 | 121 | ||
117 | QString Resource::fileName() const | 122 | QString Resource::fileName() const |
118 | { | 123 | { |
119 | return mFileName; | 124 | return mFileName; |
120 | } | 125 | } |
121 | 126 | ||
122 | void Resource::setFileName( const QString &fileName ) | 127 | void Resource::setFileName( const QString &fileName ) |
123 | { | 128 | { |
124 | mFileName = fileName; | 129 | mFileName = fileName; |
125 | } | 130 | } |
126 | 131 | ||
127 | /** | 132 | /** |
128 | * Set the name of resource.You can override this method, | 133 | * Set the name of resource.You can override this method, |
129 | * but also remember to call Resource::setResourceName(). | 134 | * but also remember to call Resource::setResourceName(). |
130 | */ | 135 | */ |
131 | void Resource::setResourceName( const QString &name ) | 136 | void Resource::setResourceName( const QString &name ) |
132 | { | 137 | { |
133 | KRES::Resource::setResourceName(name); | 138 | KRES::Resource::setResourceName(name); |
134 | if(mSyncProfile != 0) { | 139 | if(mSyncProfile != 0) { |
135 | mSyncProfile->setName( name ); | 140 | mSyncProfile->setName( name ); |
136 | } | 141 | } |
137 | 142 | ||
138 | } | 143 | } |
139 | 144 | ||