summaryrefslogtreecommitdiffabout
path: root/kabc/resource.cpp
Unidiff
Diffstat (limited to 'kabc/resource.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/resource.cpp5
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
96Ticket *Resource::createTicket( Resource *resource ) 96Ticket *Resource::createTicket( Resource *resource )
97{ 97{
98 return new Ticket( resource ); 98 return new Ticket( resource );
99} 99}
100 100
101void Resource::removeAddressee( const Addressee& ) 101void Resource::removeAddressee( const Addressee& )
102{ 102{
103 // do nothing 103 // do nothing
104} 104}
105 105
106void Resource::cleanUp() 106void Resource::cleanUp()
107{ 107{
108 // do nothing 108 // do nothing
109} 109}
110 110
111bool Resource::isSyncable() const 111bool Resource::isSyncable() const
112{ 112{
113 return (mSyncProfile != 0); 113 return (mSyncProfile != 0);
114} 114}
115 115
116KSyncProfile* Resource::getSyncProfile()
117{
118 return mSyncProfile;
119}
120
116 121
117QString Resource::fileName() const 122QString Resource::fileName() const
118{ 123{
119 return mFileName; 124 return mFileName;
120} 125}
121 126
122void Resource::setFileName( const QString &fileName ) 127void 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 */
131void Resource::setResourceName( const QString &name ) 136void 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