summaryrefslogtreecommitdiffstats
path: root/kmail/kmailicalIface.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmailicalIface.h')
-rw-r--r--kmail/kmailicalIface.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/kmail/kmailicalIface.h b/kmail/kmailicalIface.h
index 81948fdfa..d57611035 100644
--- a/kmail/kmailicalIface.h
+++ b/kmail/kmailicalIface.h
@@ -33,7 +33,7 @@
#define KMAILICALIFACE_H
#include <dcopobject.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kurl.h>
// yes, this is this very header - but it tells dcopidl to include it
@@ -51,10 +51,10 @@ k_dcop:
struct SubResource {
//dcopidl barfs on those constructors, but dcopidlng works
SubResource() {} // for QValueList
- SubResource( const QString& loc, const QString& lab, bool rw, bool ar )
+ SubResource( const TQString& loc, const TQString& lab, bool rw, bool ar )
: location( loc ), label( lab ), writable( rw ), alarmRelevant( ar ) {}
- QString location; // unique
- QString label; // shown to the user
+ TQString location; // unique
+ TQString label; // shown to the user
bool writable;
bool alarmRelevant;
};
@@ -69,101 +69,101 @@ k_dcop:
/// This bitfield indicates which changes have been made in a folder, at syncing time.
enum FolderChanges { NoChange = 0, Contents = 1, ACL = 2 };
- virtual bool isWritableFolder( const QString& type,
- const QString& resource ) = 0;
+ virtual bool isWritableFolder( const TQString& type,
+ const TQString& resource ) = 0;
- virtual KMailICalIface::StorageFormat storageFormat( const QString& resource ) = 0;
+ virtual KMailICalIface::StorageFormat storageFormat( const TQString& resource ) = 0;
- virtual KURL getAttachment( const QString& resource,
+ virtual KURL getAttachment( const TQString& resource,
Q_UINT32 sernum,
- const QString& filename ) = 0;
- virtual QString attachmentMimetype( const QString &resource,
+ const TQString& filename ) = 0;
+ virtual TQString attachmentMimetype( const TQString &resource,
Q_UINT32 sernum,
- const QString &filename ) = 0;
+ const TQString &filename ) = 0;
- virtual QStringList listAttachments( const QString &resource, Q_UINT32 sernum ) = 0;
+ virtual TQStringList listAttachments( const TQString &resource, Q_UINT32 sernum ) = 0;
/// Update a kolab storage entry. Returns the new mail serial number,
/// or 0 if something went wrong. Can be used for adding as well.
- virtual Q_UINT32 update( const QString& resource,
+ virtual Q_UINT32 update( const TQString& resource,
Q_UINT32 sernum,
- const QString& subject,
- const QString& plainTextBody,
- const QMap<QCString, QString>& customHeaders,
- const QStringList& attachmentURLs,
- const QStringList& attachmentMimetypes,
- const QStringList& attachmentNames,
- const QStringList& deletedAttachments ) = 0;
-
- virtual bool deleteIncidenceKolab( const QString& resource,
+ const TQString& subject,
+ const TQString& plainTextBody,
+ const TQMap<TQCString, TQString>& customHeaders,
+ const TQStringList& attachmentURLs,
+ const TQStringList& attachmentMimetypes,
+ const TQStringList& attachmentNames,
+ const TQStringList& deletedAttachments ) = 0;
+
+ virtual bool deleteIncidenceKolab( const TQString& resource,
Q_UINT32 sernum ) = 0;
/// Return the number of mails that need to be looked at by incidencesKolab.
/// This allows to call incidencesKolab in chunks.
- virtual int incidencesKolabCount( const QString& mimetype /*ignored*/,
- const QString& resource ) = 0;
+ virtual int incidencesKolabCount( const TQString& mimetype /*ignored*/,
+ const TQString& resource ) = 0;
- virtual QMap<Q_UINT32, QString> incidencesKolab( const QString& mimetype,
- const QString& resource,
+ virtual TQMap<Q_UINT32, TQString> incidencesKolab( const TQString& mimetype,
+ const TQString& resource,
int startIndex,
int nbMessages ) = 0;
/**
* Return list of subresources. @p contentsType is
* Mail, Calendar, Contact, Note, Task or Journal
*/
- virtual QValueList<KMailICalIface::SubResource> subresourcesKolab( const QString& contentsType ) = 0;
+ virtual TQValueList<KMailICalIface::SubResource> subresourcesKolab( const TQString& contentsType ) = 0;
/**
* Trigger the creation of a new resource folder with name @param resource
* under parent @param.
* @return success or failure
*/
- virtual bool addSubresource( const QString& resource,
- const QString& parent,
- const QString& contentsType ) = 0;
+ virtual bool addSubresource( const TQString& resource,
+ const TQString& parent,
+ const TQString& contentsType ) = 0;
/**
* Trigger the deletion of a new resource folder with id @param resource.
* @return success or failure
*/
- virtual bool removeSubresource( const QString& resource ) = 0;
+ virtual bool removeSubresource( const TQString& resource ) = 0;
/**
* Causes all resource folders of the given type to be synced with the server.
*/
- virtual bool triggerSync( const QString & ) = 0;
+ virtual bool triggerSync( const TQString & ) = 0;
k_dcop_signals:
- void incidenceAdded( const QString& type, const QString& folder,
- Q_UINT32 sernum, int format, const QString& entry );
- void asyncLoadResult( const QMap<Q_UINT32, QString>, const QString& type,
- const QString& folder );
- void incidenceDeleted( const QString& type, const QString& folder,
- const QString& uid );
- void signalRefresh( const QString& type, const QString& folder );
- void subresourceAdded( const QString& type, const QString& resource,
- const QString& label, bool writable, bool alarmRelevant );
- void subresourceDeleted( const QString& type, const QString& resource );
+ void incidenceAdded( const TQString& type, const TQString& folder,
+ Q_UINT32 sernum, int format, const TQString& entry );
+ void asyncLoadResult( const TQMap<Q_UINT32, TQString>, const TQString& type,
+ const TQString& folder );
+ void incidenceDeleted( const TQString& type, const TQString& folder,
+ const TQString& uid );
+ void signalRefresh( const TQString& type, const TQString& folder );
+ void subresourceAdded( const TQString& type, const TQString& resource,
+ const TQString& label, bool writable, bool alarmRelevant );
+ void subresourceDeleted( const TQString& type, const TQString& resource );
};
-inline QDataStream& operator<<( QDataStream& str, const KMailICalIface::SubResource& subResource )
+inline TQDataStream& operator<<( TQDataStream& str, const KMailICalIface::SubResource& subResource )
{
str << subResource.location << subResource.label << subResource.writable << subResource.alarmRelevant;
return str;
}
-inline QDataStream& operator>>( QDataStream& str, KMailICalIface::SubResource& subResource )
+inline TQDataStream& operator>>( TQDataStream& str, KMailICalIface::SubResource& subResource )
{
str >> subResource.location >> subResource.label >> subResource.writable >> subResource.alarmRelevant;
return str;
}
-inline QDataStream& operator<<( QDataStream& str, const KMailICalIface::StorageFormat& format )
+inline TQDataStream& operator<<( TQDataStream& str, const KMailICalIface::StorageFormat& format )
{
Q_UINT32 foo = format;
str << foo;
return str;
}
-inline QDataStream& operator>>( QDataStream& str, KMailICalIface::StorageFormat& format )
+inline TQDataStream& operator>>( TQDataStream& str, KMailICalIface::StorageFormat& format )
{
Q_UINT32 foo;
str >> foo;