summaryrefslogtreecommitdiffstats
path: root/ktnef/ktnef
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /ktnef/ktnef
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktnef/ktnef')
-rw-r--r--ktnef/ktnef/ktnefattach.h26
-rw-r--r--ktnef/ktnef/ktnefdefs.h2
-rw-r--r--ktnef/ktnef/ktnefmessage.h8
-rw-r--r--ktnef/ktnef/ktnefparser.h20
-rw-r--r--ktnef/ktnef/ktnefproperty.h20
-rw-r--r--ktnef/ktnef/ktnefpropertyset.h28
-rw-r--r--ktnef/ktnef/ktnefwriter.h36
7 files changed, 70 insertions, 70 deletions
diff --git a/ktnef/ktnef/ktnefattach.h b/ktnef/ktnef/ktnefattach.h
index 846c4a6b..f7f9f086 100644
--- a/ktnef/ktnef/ktnefattach.h
+++ b/ktnef/ktnef/ktnefattach.h
@@ -18,9 +18,9 @@
#ifndef KTNEFATTACH_H
#define KTNEFATTACH_H
-#include <qstring.h>
-#include <qmap.h>
-#include <qvariant.h>
+#include <tqstring.h>
+#include <tqmap.h>
+#include <tqvariant.h>
#include <ktnef/ktnefpropertyset.h>
#include <kdepimmacros.h>
@@ -49,18 +49,18 @@ public:
void setSize(int s);
int displaySize() const;
void setDisplaySize(int s);
- QString name() const;
- void setName(const QString& str);
+ TQString name() const;
+ void setName(const TQString& str);
int index() const;
void setIndex(int i);
- QString fileName() const;
- void setFileName(const QString& str);
- QString displayName() const;
- void setDisplayName(const QString& str);
- QString mimeTag() const;
- void setMimeTag(const QString& str);
- QString extension() const;
- void setExtension(const QString& str);
+ TQString fileName() const;
+ void setFileName(const TQString& str);
+ TQString displayName() const;
+ void setDisplayName(const TQString& str);
+ TQString mimeTag() const;
+ void setMimeTag(const TQString& str);
+ TQString extension() const;
+ void setExtension(const TQString& str);
private:
class AttachPrivate;
diff --git a/ktnef/ktnef/ktnefdefs.h b/ktnef/ktnef/ktnefdefs.h
index 6e9e96fd..d2e57aa5 100644
--- a/ktnef/ktnef/ktnefdefs.h
+++ b/ktnef/ktnef/ktnefdefs.h
@@ -85,7 +85,7 @@
#define MAPI_TAG_DATA 0x3701
#define MAPI_TAG_ATTACHENCODING 0x3702
#define MAPI_TAG_EXTENSION 0x3703
-#define MAPI_TAG_ATTACHMETHOD 0x3705
+#define MAPI_TAG_ATTACHQT_METHOD 0x3705
#define MAPI_TAG_RENDERINGPOS 0x370b
#define MAPI_TAG_MIMETAG 0x370e
#define MAPI_TAG_ATTACHFLAGS 0x3714
diff --git a/ktnef/ktnef/ktnefmessage.h b/ktnef/ktnef/ktnefmessage.h
index efdc236a..059c64f6 100644
--- a/ktnef/ktnef/ktnefmessage.h
+++ b/ktnef/ktnef/ktnefmessage.h
@@ -19,7 +19,7 @@
#define KTNEFMESSAGE_H
#include <ktnef/ktnefpropertyset.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <kdepimmacros.h>
class KTNEFAttach;
@@ -30,11 +30,11 @@ public:
KTNEFMessage();
~KTNEFMessage();
- const QPtrList<KTNEFAttach>& attachmentList() const;
- KTNEFAttach* attachment( const QString& filename ) const;
+ const TQPtrList<KTNEFAttach>& attachmentList() const;
+ KTNEFAttach* attachment( const TQString& filename ) const;
void addAttachment( KTNEFAttach* attach );
void clearAttachments();
- QString rtfString();
+ TQString rtfString();
private:
class MessagePrivate;
diff --git a/ktnef/ktnef/ktnefparser.h b/ktnef/ktnef/ktnefparser.h
index 3696cd17..ff48ab08 100644
--- a/ktnef/ktnef/ktnefparser.h
+++ b/ktnef/ktnef/ktnefparser.h
@@ -18,9 +18,9 @@
#ifndef KTNEFPARSER_H
#define KTNEFPARSER_H
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqmap.h>
#include <kdepimmacros.h>
class KTNEFAttach;
@@ -33,21 +33,21 @@ public:
KTNEFParser();
~KTNEFParser();
- bool openFile(const QString& filename);
- bool openDevice( QIODevice *device );
- bool extractFile(const QString& filename);
- bool extractFileTo(const QString& filename, const QString& dirname);
+ bool openFile(const TQString& filename);
+ bool openDevice( TQIODevice *device );
+ bool extractFile(const TQString& filename);
+ bool extractFileTo(const TQString& filename, const TQString& dirname);
bool extractAll();
- void setDefaultExtractDir(const QString& dirname);
+ void setDefaultExtractDir(const TQString& dirname);
KTNEFMessage* message() const;
private:
bool decodeAttachment();
bool decodeMessage();
- bool extractAttachmentTo(KTNEFAttach *att, const QString& dirname);
+ bool extractAttachmentTo(KTNEFAttach *att, const TQString& dirname);
bool parseDevice();
void checkCurrent(int state);
- bool readMAPIProperties(QMap<int,KTNEFProperty*>& pros, KTNEFAttach *attach = 0);
+ bool readMAPIProperties(TQMap<int,KTNEFProperty*>& pros, KTNEFAttach *attach = 0);
void deleteDevice();
private:
diff --git a/ktnef/ktnef/ktnefproperty.h b/ktnef/ktnef/ktnefproperty.h
index b56b9f80..bf5ab8a2 100644
--- a/ktnef/ktnef/ktnefproperty.h
+++ b/ktnef/ktnef/ktnefproperty.h
@@ -18,8 +18,8 @@
#ifndef KTNEFPROPERTY_H
#define KTNEFPROPERTY_H
-#include <qvariant.h>
-#include <qstring.h>
+#include <tqvariant.h>
+#include <tqstring.h>
#include <kdepimmacros.h>
class KDE_EXPORT KTNEFProperty
@@ -40,24 +40,24 @@ public:
};
KTNEFProperty();
- KTNEFProperty( int key_, int type_, const QVariant& value_, const QVariant& name_ = QVariant() );
+ KTNEFProperty( int key_, int type_, const TQVariant& value_, const TQVariant& name_ = TQVariant() );
KTNEFProperty( const KTNEFProperty& p );
- QString keyString();
- QString valueString();
- static QString formatValue( const QVariant& v, bool beautify=true );
+ TQString keyString();
+ TQString valueString();
+ static TQString formatValue( const TQVariant& v, bool beautify=true );
int key() const;
int type() const;
- QVariant value() const;
- QVariant name() const;
+ TQVariant value() const;
+ TQVariant name() const;
bool isVector() const;
private:
int _key;
int _type;
- QVariant _value;
- QVariant _name;
+ TQVariant _value;
+ TQVariant _name;
};
#endif /* KTNEFPROPERTY_H */
diff --git a/ktnef/ktnef/ktnefpropertyset.h b/ktnef/ktnef/ktnefpropertyset.h
index 387acbd3..841cf950 100644
--- a/ktnef/ktnef/ktnefpropertyset.h
+++ b/ktnef/ktnef/ktnefpropertyset.h
@@ -18,8 +18,8 @@
#ifndef KTNEFPROPERTYSET_H
#define KTNEFPROPERTYSET_H
-#include <qmap.h>
-#include <qvariant.h>
+#include <tqmap.h>
+#include <tqvariant.h>
#include <kdepimmacros.h>
class KTNEFProperty;
@@ -31,24 +31,24 @@ public:
~KTNEFPropertySet();
/* MAPI properties interface */
- void addProperty( int key, int type, const QVariant& value, const QVariant& name = QVariant(), bool overwrite = false );
- QString findProp( int key, const QString& fallback=QString::null, bool convertToUpper=false);
- QString findNamedProp(const QString& name, const QString& fallback=QString::null, bool convertToUpper=false);
- QMap<int,KTNEFProperty*>& properties();
- const QMap<int,KTNEFProperty*>& properties() const;
- QVariant property( int key ) const;
+ void addProperty( int key, int type, const TQVariant& value, const TQVariant& name = TQVariant(), bool overwrite = false );
+ TQString findProp( int key, const TQString& fallback=TQString::null, bool convertToUpper=false);
+ TQString findNamedProp(const TQString& name, const TQString& fallback=TQString::null, bool convertToUpper=false);
+ TQMap<int,KTNEFProperty*>& properties();
+ const TQMap<int,KTNEFProperty*>& properties() const;
+ TQVariant property( int key ) const;
/* TNEF attributes interface */
- void addAttribute( int key, int type, const QVariant& value, bool overwrite = false );
- QMap<int,KTNEFProperty*>& attributes();
- const QMap<int,KTNEFProperty*>& attributes() const;
- QVariant attribute( int key ) const;
+ void addAttribute( int key, int type, const TQVariant& value, bool overwrite = false );
+ TQMap<int,KTNEFProperty*>& attributes();
+ const TQMap<int,KTNEFProperty*>& attributes() const;
+ TQVariant attribute( int key ) const;
void clear( bool deleteAll = false );
private:
- QMap<int,KTNEFProperty*> properties_; /* used to store MAPI properties */
- QMap<int,KTNEFProperty*> attributes_; /* used to store TNEF attributes */
+ TQMap<int,KTNEFProperty*> properties_; /* used to store MAPI properties */
+ TQMap<int,KTNEFProperty*> attributes_; /* used to store TNEF attributes */
};
#endif /* KTNEFPROPERTYSET_H */
diff --git a/ktnef/ktnef/ktnefwriter.h b/ktnef/ktnef/ktnefwriter.h
index ab04c0b3..29828c1f 100644
--- a/ktnef/ktnef/ktnefwriter.h
+++ b/ktnef/ktnef/ktnefwriter.h
@@ -30,12 +30,12 @@ public:
KTNEFWriter();
~KTNEFWriter();
- void addProperty( int tag, int type, const QVariant& value );
+ void addProperty( int tag, int type, const TQVariant& value );
- bool writeFile( QIODevice &file );
- bool writeFile( QDataStream &stream );
+ bool writeFile( TQIODevice &file );
+ bool writeFile( TQDataStream &stream );
- bool writeProperty( QDataStream &stream, int &bytes, int type);
+ bool writeProperty( TQDataStream &stream, int &bytes, int type);
enum MessageType {
Appointment, MeetingCancelled, MeetingRequest,
@@ -64,24 +64,24 @@ public:
};
// This set of functions sets all properties on the file you want to save
- void setSender(const QString &name, const QString &email);
+ void setSender(const TQString &name, const TQString &email);
void setMessageType(MessageType m);
void setMethod( Method m );
void clearAttendees();
- void addAttendee( const QString& cn, Role r, PartStat p, bool rsvp,
- const QString& mailto );
- void setOrganizer( const QString& organizer ); // Is that the same as sender???
- void setDtStart( const QDateTime& dtStart );
- void setDtEnd( const QDateTime& dtEnd );
- void setLocation( const QString& location );
- void setUID( const QString& uid );
- void setDtStamp( const QDateTime& dtStamp );
- void setCategories( const QStringList& );
- void setDescription( const QString& );
- void setSummary( const QString& );
+ void addAttendee( const TQString& cn, Role r, PartStat p, bool rsvp,
+ const TQString& mailto );
+ void setOrganizer( const TQString& organizer ); // Is that the same as sender???
+ void setDtStart( const TQDateTime& dtStart );
+ void setDtEnd( const TQDateTime& dtEnd );
+ void setLocation( const TQString& location );
+ void setUID( const TQString& uid );
+ void setDtStamp( const TQDateTime& dtStamp );
+ void setCategories( const TQStringList& );
+ void setDescription( const TQString& );
+ void setSummary( const TQString& );
void setPriority( Priority p );
- void setAlarm( const QString& description, AlarmAction action,
- const QDateTime& wakeBefore );
+ void setAlarm( const TQString& description, AlarmAction action,
+ const TQDateTime& wakeBefore );
private:
class PrivateData;