summaryrefslogtreecommitdiffstats
path: root/tderesources/scalix/tdeabc/resourcescalix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tderesources/scalix/tdeabc/resourcescalix.cpp')
-rw-r--r--tderesources/scalix/tdeabc/resourcescalix.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/tderesources/scalix/tdeabc/resourcescalix.cpp b/tderesources/scalix/tdeabc/resourcescalix.cpp
index ea3928a59..dc953ded0 100644
--- a/tderesources/scalix/tdeabc/resourcescalix.cpp
+++ b/tderesources/scalix/tdeabc/resourcescalix.cpp
@@ -61,7 +61,7 @@ class ScalixFactory : public KRES::PluginFactoryBase
public:
KRES::Resource *resource( const TDEConfig *config )
{
- return new KABC::ResourceScalix( config );
+ return new TDEABC::ResourceScalix( config );
}
KRES::ConfigWidget *configWidget( TQWidget* )
@@ -77,7 +77,7 @@ static const char* s_attachmentMimeTypeContact = "application/x-vnd.kolab.contac
static const char* s_attachmentMimeTypeDistList = "application/x-vnd.kolab.contact.distlist";
static const char* s_inlineMimeType = "application/scalix-properties";
-KABC::ResourceScalix::ResourceScalix( const TDEConfig *config )
+TDEABC::ResourceScalix::ResourceScalix( const TDEConfig *config )
: KPIM::ResourceABC( config ),
Scalix::ResourceScalixBase( "ResourceScalix-KABC" ),
mCachedSubresource( TQString() ), mLocked( false )
@@ -85,7 +85,7 @@ KABC::ResourceScalix::ResourceScalix( const TDEConfig *config )
setType( "scalix" );
}
-KABC::ResourceScalix::~ResourceScalix()
+TDEABC::ResourceScalix::~ResourceScalix()
{
// The resource is deleted on exit (StdAddressBook's KStaticDeleter),
// and it wasn't closed before that, so close here to save the config.
@@ -94,7 +94,7 @@ KABC::ResourceScalix::~ResourceScalix()
}
}
-void KABC::ResourceScalix::loadSubResourceConfig( TDEConfig& config,
+void TDEABC::ResourceScalix::loadSubResourceConfig( TDEConfig& config,
const TQString& name,
const TQString& label,
bool writable )
@@ -106,7 +106,7 @@ void KABC::ResourceScalix::loadSubResourceConfig( TDEConfig& config,
completionWeight ) );
}
-bool KABC::ResourceScalix::doOpen()
+bool TDEABC::ResourceScalix::doOpen()
{
TDEConfig config( configFile() );
@@ -123,7 +123,7 @@ bool KABC::ResourceScalix::doOpen()
return true;
}
-void KABC::ResourceScalix::doClose()
+void TDEABC::ResourceScalix::doClose()
{
TDEConfig config( configFile() );
@@ -135,7 +135,7 @@ void KABC::ResourceScalix::doClose()
}
}
-KABC::Ticket * KABC::ResourceScalix::requestSaveTicket()
+TDEABC::Ticket * TDEABC::ResourceScalix::requestSaveTicket()
{
if ( !addressBook() ) {
kdError() << "no addressbook" << endl;
@@ -146,29 +146,29 @@ KABC::Ticket * KABC::ResourceScalix::requestSaveTicket()
return createTicket( this );
}
-void KABC::ResourceScalix::releaseSaveTicket( Ticket* ticket )
+void TDEABC::ResourceScalix::releaseSaveTicket( Ticket* ticket )
{
mLocked = false;
mCachedSubresource = TQString();
delete ticket;
}
-TQString KABC::ResourceScalix::loadContact( const TQString& contactData,
+TQString TDEABC::ResourceScalix::loadContact( const TQString& contactData,
const TQString& subResource,
TQ_UINT32 sernum,
KMailICalIface::StorageFormat )
{
- KABC::Addressee addr = Contact::fromXml( contactData );
+ TDEABC::Addressee addr = Contact::fromXml( contactData );
addr.setResource( this );
addr.setChanged( false );
- KABC::Resource::insertAddressee( addr ); // same as mAddrMap.insert( addr.uid(), addr );
+ TDEABC::Resource::insertAddressee( addr ); // same as mAddrMap.insert( addr.uid(), addr );
mUidMap[ addr.uid() ] = StorageReference( subResource, sernum );
kdDebug(5650) << "Loaded contact uid=" << addr.uid() << " sernum=" << sernum << " fullName=" << addr.name() << endl;
return addr.uid();
}
-bool KABC::ResourceScalix::loadSubResource( const TQString& subResource )
+bool TDEABC::ResourceScalix::loadSubResource( const TQString& subResource )
{
bool scalixcontacts = loadSubResourceHelper( subResource, s_attachmentMimeTypeContact, KMailICalIface::StorageXML );
bool scalixdistlists = loadSubResourceHelper( subResource, s_attachmentMimeTypeDistList, KMailICalIface::StorageXML );
@@ -176,13 +176,13 @@ bool KABC::ResourceScalix::loadSubResource( const TQString& subResource )
return scalixcontacts && scalixdistlists && vcardstyle;
}
-bool KABC::ResourceScalix::loadSubResourceHelper( const TQString& subResource,
+bool TDEABC::ResourceScalix::loadSubResourceHelper( const TQString& subResource,
const char* mimetype,
KMailICalIface::StorageFormat format )
{
int count = 0;
if ( !kmailIncidencesCount( count, mimetype, subResource ) ) {
- kdError() << "Communication problem in KABC::ResourceScalix::loadSubResourceHelper()\n";
+ kdError() << "Communication problem in TDEABC::ResourceScalix::loadSubResourceHelper()\n";
return false;
}
if ( !count )
@@ -229,7 +229,7 @@ bool KABC::ResourceScalix::loadSubResourceHelper( const TQString& subResource,
return true;
}
-bool KABC::ResourceScalix::load()
+bool TDEABC::ResourceScalix::load()
{
mUidMap.clear();
mAddrMap.clear();
@@ -247,7 +247,7 @@ bool KABC::ResourceScalix::load()
return rc;
}
-bool KABC::ResourceScalix::save( Ticket* )
+bool TDEABC::ResourceScalix::save( Ticket* )
{
bool rc = true;
@@ -312,7 +312,7 @@ void AttachmentList::updateAttachment( const TQByteArray& data, const TQString&
}
}
-bool KABC::ResourceScalix::kmailUpdateAddressee( const Addressee& addr )
+bool TDEABC::ResourceScalix::kmailUpdateAddressee( const Addressee& addr )
{
const TQString uid = addr.uid();
TQString subResource;
@@ -372,7 +372,7 @@ bool KABC::ResourceScalix::kmailUpdateAddressee( const Addressee& addr )
return rc;
}
-void KABC::ResourceScalix::insertAddressee( const Addressee& addr )
+void TDEABC::ResourceScalix::insertAddressee( const Addressee& addr )
{
const TQString uid = addr.uid();
//kdDebug(5650) << k_funcinfo << uid << endl;
@@ -389,7 +389,7 @@ void KABC::ResourceScalix::insertAddressee( const Addressee& addr )
Resource::insertAddressee( addr );
}
-void KABC::ResourceScalix::removeAddressee( const Addressee& addr )
+void TDEABC::ResourceScalix::removeAddressee( const Addressee& addr )
{
const TQString uid = addr.uid();
if ( mUidMap.find( uid ) == mUidMap.end() ) return;
@@ -412,7 +412,7 @@ void KABC::ResourceScalix::removeAddressee( const Addressee& addr )
* These are the DCOP slots that KMail call to notify when something
* changed.
*/
-bool KABC::ResourceScalix::fromKMailAddIncidence( const TQString& type,
+bool TDEABC::ResourceScalix::fromKMailAddIncidence( const TQString& type,
const TQString& subResource,
TQ_UINT32 sernum,
int format,
@@ -440,7 +440,7 @@ bool KABC::ResourceScalix::fromKMailAddIncidence( const TQString& type,
return true;
}
-void KABC::ResourceScalix::fromKMailDelIncidence( const TQString& type,
+void TDEABC::ResourceScalix::fromKMailDelIncidence( const TQString& type,
const TQString& subResource,
const TQString& uid )
{
@@ -464,7 +464,7 @@ void KABC::ResourceScalix::fromKMailDelIncidence( const TQString& type,
}
}
-void KABC::ResourceScalix::fromKMailRefresh( const TQString& type,
+void TDEABC::ResourceScalix::fromKMailRefresh( const TQString& type,
const TQString& /*subResource*/ )
{
// Check if this is a contact
@@ -476,7 +476,7 @@ void KABC::ResourceScalix::fromKMailRefresh( const TQString& type,
addressBook()->emitAddressBookChanged();
}
-void KABC::ResourceScalix::fromKMailAddSubresource( const TQString& type,
+void TDEABC::ResourceScalix::fromKMailAddSubresource( const TQString& type,
const TQString& subResource,
const TQString& label,
bool writable )
@@ -495,7 +495,7 @@ void KABC::ResourceScalix::fromKMailAddSubresource( const TQString& type,
emit signalSubresourceAdded( this, type, subResource );
}
-void KABC::ResourceScalix::fromKMailDelSubresource( const TQString& type,
+void TDEABC::ResourceScalix::fromKMailDelSubresource( const TQString& type,
const TQString& subResource )
{
if( type != s_kmailContentsType ) return;
@@ -535,7 +535,7 @@ void KABC::ResourceScalix::fromKMailDelSubresource( const TQString& type,
-void KABC::ResourceScalix::fromKMailAsyncLoadResult( const TQMap<TQ_UINT32, TQString>& map,
+void TDEABC::ResourceScalix::fromKMailAsyncLoadResult( const TQMap<TQ_UINT32, TQString>& map,
const TQString& /* type */,
const TQString& folder )
{
@@ -550,12 +550,12 @@ void KABC::ResourceScalix::fromKMailAsyncLoadResult( const TQMap<TQ_UINT32, TQSt
addressBook()->emitAddressBookChanged();
}
-TQStringList KABC::ResourceScalix::subresources() const
+TQStringList TDEABC::ResourceScalix::subresources() const
{
return mSubResources.keys();
}
-bool KABC::ResourceScalix::subresourceActive( const TQString& subresource ) const
+bool TDEABC::ResourceScalix::subresourceActive( const TQString& subresource ) const
{
if ( mSubResources.contains( subresource ) ) {
return mSubResources[ subresource ].active();
@@ -567,7 +567,7 @@ bool KABC::ResourceScalix::subresourceActive( const TQString& subresource ) cons
return true;
}
-bool KABC::ResourceScalix::subresourceWritable( const TQString& subresource ) const
+bool TDEABC::ResourceScalix::subresourceWritable( const TQString& subresource ) const
{
if ( mSubResources.contains( subresource ) ) {
return mSubResources[ subresource ].writable();
@@ -575,7 +575,7 @@ bool KABC::ResourceScalix::subresourceWritable( const TQString& subresource ) co
return false; //better a safe default
}
-int KABC::ResourceScalix::subresourceCompletionWeight( const TQString& subresource ) const
+int TDEABC::ResourceScalix::subresourceCompletionWeight( const TQString& subresource ) const
{
if ( mSubResources.contains( subresource ) ) {
return mSubResources[ subresource ].completionWeight();
@@ -586,7 +586,7 @@ int KABC::ResourceScalix::subresourceCompletionWeight( const TQString& subresour
return 80;
}
-TQString KABC::ResourceScalix::subresourceLabel( const TQString& subresource ) const
+TQString TDEABC::ResourceScalix::subresourceLabel( const TQString& subresource ) const
{
if ( mSubResources.contains( subresource ) ) {
return mSubResources[ subresource ].label();
@@ -596,7 +596,7 @@ TQString KABC::ResourceScalix::subresourceLabel( const TQString& subresource ) c
return TQString();
}
-void KABC::ResourceScalix::setSubresourceCompletionWeight( const TQString& subresource, int completionWeight )
+void TDEABC::ResourceScalix::setSubresourceCompletionWeight( const TQString& subresource, int completionWeight )
{
if ( mSubResources.contains( subresource ) ) {
mSubResources[ subresource ].setCompletionWeight( completionWeight );
@@ -605,7 +605,7 @@ void KABC::ResourceScalix::setSubresourceCompletionWeight( const TQString& subre
}
}
-TQMap<TQString, TQString> KABC::ResourceScalix::uidToResourceMap() const
+TQMap<TQString, TQString> TDEABC::ResourceScalix::uidToResourceMap() const
{
// TODO: Couldn't this be made simpler?
TQMap<TQString, TQString> map;
@@ -615,7 +615,7 @@ TQMap<TQString, TQString> KABC::ResourceScalix::uidToResourceMap() const
return map;
}
-void KABC::ResourceScalix::setSubresourceActive( const TQString &subresource, bool active )
+void TDEABC::ResourceScalix::setSubresourceActive( const TQString &subresource, bool active )
{
if ( mSubResources.contains( subresource ) ) {
mSubResources[ subresource ].setActive( active );