summaryrefslogtreecommitdiffstats
path: root/knode/knconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'knode/knconfig.h')
-rw-r--r--knode/knconfig.h166
1 files changed, 83 insertions, 83 deletions
diff --git a/knode/knconfig.h b/knode/knconfig.h
index 2248a361c..e2aa682bf 100644
--- a/knode/knconfig.h
+++ b/knode/knconfig.h
@@ -15,12 +15,12 @@
#ifndef KNCONFIG_H
#define KNCONFIG_H
-#include <qasciidict.h>
-#include <qcolor.h>
-#include <qdatetime.h>
-#include <qfont.h>
-#include <qobject.h>
-#include <qpixmap.h>
+#include <tqasciidict.h>
+#include <tqcolor.h>
+#include <tqdatetime.h>
+#include <tqfont.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
#include <kconfig.h>
@@ -63,7 +63,7 @@ class Base {
};
-class KDE_EXPORT Identity : public QObject, public Base {
+class KDE_EXPORT Identity : public TQObject, public Base {
Q_OBJECT
@@ -81,35 +81,35 @@ Q_OBJECT
//personal information
bool hasName() { return (!n_ame.isEmpty()); }
- QString name() const { return n_ame; }
- void setName(const QString &s) { n_ame=s; }
+ TQString name() const { return n_ame; }
+ void setName(const TQString &s) { n_ame=s; }
bool emailIsValid();
bool hasEmail() { return (!e_mail.isEmpty()); }
- QString email() { return e_mail; }
- void setEmail(const QCString &s) { e_mail=s; }
+ TQString email() { return e_mail; }
+ void setEmail(const TQCString &s) { e_mail=s; }
bool hasReplyTo() { return (!r_eplyTo.isEmpty()); }
- QString replyTo() { return r_eplyTo; }
- void setReplyTo(const QString &s) { r_eplyTo=s; }
+ TQString replyTo() { return r_eplyTo; }
+ void setReplyTo(const TQString &s) { r_eplyTo=s; }
bool hasMailCopiesTo() { return (!m_ailCopiesTo.isEmpty()); }
- QString mailCopiesTo() { return m_ailCopiesTo; }
- void setMailCopiesTo(const QString &s) { m_ailCopiesTo=s; }
+ TQString mailCopiesTo() { return m_ailCopiesTo; }
+ void setMailCopiesTo(const TQString &s) { m_ailCopiesTo=s; }
bool hasOrga() { return (!o_rga.isEmpty()); }
- QString orga() const { return o_rga; }
- void setOrga(const QString &s) { o_rga=s; }
+ TQString orga() const { return o_rga; }
+ void setOrga(const TQString &s) { o_rga=s; }
// OpenPGP signing key
bool hasSigningKey() { return (!s_igningKey.isEmpty()); }
- QCString signingKey() { return s_igningKey; }
- void setSigningKey(const QCString &s) { s_igningKey=s;}
+ TQCString signingKey() { return s_igningKey; }
+ void setSigningKey(const TQCString &s) { s_igningKey=s;}
//signature
bool hasSignature() { return ( (u_seSigFile && !s_igPath.isEmpty()) || !s_igText.isEmpty() ); }
bool useSigFile() const { return u_seSigFile; }
bool useSigGenerator()const { return u_seSigGenerator; }
- QString sigPath()const { return s_igPath; }
- QString sigText()const { return s_igText; }
- QString getSignature();
- QString getSigGeneratorStdErr() { return s_igStdErr; }
+ TQString sigPath()const { return s_igPath; }
+ TQString sigText()const { return s_igText; }
+ TQString getSignature();
+ TQString getSigGeneratorStdErr() { return s_igStdErr; }
protected slots:
@@ -117,7 +117,7 @@ Q_OBJECT
void slotReceiveStderr(KProcess *proc, char *buffer, int buflen);
protected:
- QString n_ame,
+ TQString n_ame,
e_mail,
o_rga,
r_eplyTo,
@@ -126,7 +126,7 @@ Q_OBJECT
s_igContents,
s_igStdErr,
s_igPath;
- QCString s_igningKey;
+ TQCString s_igningKey;
bool u_seSigFile,
u_seSigGenerator,
g_lobal;
@@ -160,49 +160,49 @@ class KDE_EXPORT Appearance : public Base {
void save();
- QColor backgroundColor() const;
- QColor alternateBackgroundColor() const;
- QColor textColor() const;
- QColor quoteColor( int depth ) const;
- QColor linkColor() const;
- QColor unreadThreadColor() const;
- QColor readThreadColor() const;
- QColor unreadArticleColor() const;
- QColor readArticleColor() const;
- QColor signOkKeyOkColor() const { return u_seColors ? c_olors[signOkKeyOk] : defaultColor( signOkKeyOk ); }
- QColor signOkKeyBadColor() const { return u_seColors ? c_olors[signOkKeyBad] : defaultColor( signOkKeyBad ); }
- QColor signWarnColor() const { return u_seColors ? c_olors[signWarn] : defaultColor( signWarn ); }
- QColor signErrColor() const { return u_seColors ? c_olors[signErr] : defaultColor( signErr ); }
- QColor htmlWarningColor() const { return u_seColors ? c_olors[htmlWarning] : defaultColor( htmlWarning ); }
-
- QFont articleFont() const;
- QFont articleFixedFont() const;
- QFont composerFont() const;
- QFont groupListFont() const;
- QFont articleListFont() const;
-
- const QPixmap& icon(IconIndex i) { return i_cons[i]; }
+ TQColor backgroundColor() const;
+ TQColor alternateBackgroundColor() const;
+ TQColor textColor() const;
+ TQColor quoteColor( int depth ) const;
+ TQColor linkColor() const;
+ TQColor unreadThreadColor() const;
+ TQColor readThreadColor() const;
+ TQColor unreadArticleColor() const;
+ TQColor readArticleColor() const;
+ TQColor signOkKeyOkColor() const { return u_seColors ? c_olors[signOkKeyOk] : defaultColor( signOkKeyOk ); }
+ TQColor signOkKeyBadColor() const { return u_seColors ? c_olors[signOkKeyBad] : defaultColor( signOkKeyBad ); }
+ TQColor signWarnColor() const { return u_seColors ? c_olors[signWarn] : defaultColor( signWarn ); }
+ TQColor signErrColor() const { return u_seColors ? c_olors[signErr] : defaultColor( signErr ); }
+ TQColor htmlWarningColor() const { return u_seColors ? c_olors[htmlWarning] : defaultColor( htmlWarning ); }
+
+ TQFont articleFont() const;
+ TQFont articleFixedFont() const;
+ TQFont composerFont() const;
+ TQFont groupListFont() const;
+ TQFont articleListFont() const;
+
+ const TQPixmap& icon(IconIndex i) { return i_cons[i]; }
protected:
- const QColor& color( int i ) const { return c_olors[i]; }
- const QString& colorName( int i ) const { return c_olorNames[i]; }
+ const TQColor& color( int i ) const { return c_olors[i]; }
+ const TQString& colorName( int i ) const { return c_olorNames[i]; }
int colorCount() const { return COL_CNT; }
- QColor defaultColor(int i) const;
+ TQColor defaultColor(int i) const;
- const QFont& font(int i) const { return f_onts[i]; }
- const QString& fontName(int i) const { return f_ontNames[i]; }
+ const TQFont& font(int i) const { return f_onts[i]; }
+ const TQString& fontName(int i) const { return f_ontNames[i]; }
int fontCount() const { return FNT_CNT; }
- QFont defaultFont(int) const;
+ TQFont defaultFont(int) const;
void recreateLVIcons();
bool u_seColors,
u_seFonts;
- QColor c_olors[COL_CNT];
- QString c_olorNames[COL_CNT];
- QFont f_onts[FNT_CNT];
- QString f_ontNames[FNT_CNT];
- QPixmap i_cons[ICON_CNT];
+ TQColor c_olors[COL_CNT];
+ TQString c_olorNames[COL_CNT];
+ TQFont f_onts[FNT_CNT];
+ TQString f_ontNames[FNT_CNT];
+ TQPixmap i_cons[ICON_CNT];
};
@@ -237,7 +237,7 @@ class KDE_EXPORT ReadNewsGeneral : public Base {
void setShowThreads(bool b) { d_irty=true; s_howThreads=b;}
KMime::DateFormatter::FormatType dateFormat() const { return mDateFormat; }
- QString dateCustomFormat() const { return mDateCustomFormat; }
+ TQString dateCustomFormat() const { return mDateCustomFormat; }
void setShowLines( bool show ) { d_irty = true; s_howLines = show; }
void setShowScore( bool show ) { d_irty = true; s_howScore = show; }
@@ -260,7 +260,7 @@ class KDE_EXPORT ReadNewsGeneral : public Base {
a_rtCacheSize;
KMime::DateFormatter::FormatType mDateFormat;
- QString mDateCustomFormat;
+ TQString mDateCustomFormat;
};
@@ -308,7 +308,7 @@ class KDE_EXPORT ReadNewsViewer : public Base {
bool showSignature()const { return s_howSig; }
bool interpretFormatTags()const { return i_nterpretFormatTags; }
void setInterpretFormatTags( bool f ) { d_irty = true; i_nterpretFormatTags = f; }
- QString quoteCharacters()const { return q_uoteCharacters; }
+ TQString quoteCharacters()const { return q_uoteCharacters; }
bool openAttachmentsOnClick()const { return o_penAtt; }
bool showAlternativeContents()const { return s_howAlts; }
@@ -332,7 +332,7 @@ class KDE_EXPORT ReadNewsViewer : public Base {
u_seFixedFont,
mShowRefBar,
mAlwaysShowHTML;
- QString q_uoteCharacters;
+ TQString q_uoteCharacters;
};
@@ -349,11 +349,11 @@ class KDE_EXPORT DisplayedHeaders : public Base
void up(KNDisplayedHeader *h);
void down(KNDisplayedHeader *h);
- QValueList<KNDisplayedHeader*> headers() const { return mHeaderList; }
+ TQValueList<KNDisplayedHeader*> headers() const { return mHeaderList; }
protected:
- QValueList<KNDisplayedHeader*> mHeaderList;
+ TQValueList<KNDisplayedHeader*> mHeaderList;
};
@@ -382,22 +382,22 @@ class KDE_EXPORT XHeader {
public:
XHeader() {}
- XHeader(const QString &s);
+ XHeader(const TQString &s);
XHeader(const XHeader &s) { n_ame=s.n_ame; v_alue=s.v_alue; }
~XHeader() {}
XHeader& operator=(const XHeader &s) { n_ame=s.n_ame; v_alue=s.v_alue; return (*this); }
- QCString name() { return n_ame; }
- QString value() { return v_alue; }
- QString header() { return (QString::fromLatin1(("X-"+n_ame+": "))+v_alue); }
+ TQCString name() { return n_ame; }
+ TQString value() { return v_alue; }
+ TQString header() { return (TQString::fromLatin1(("X-"+n_ame+": "))+v_alue); }
protected:
- QCString n_ame;
- QString v_alue;
+ TQCString n_ame;
+ TQString v_alue;
};
-typedef QValueList<XHeader> XHeaders;
+typedef TQValueList<XHeader> XHeaders;
class KDE_EXPORT PostNewsTechnical : public Base {
@@ -411,23 +411,23 @@ class KDE_EXPORT PostNewsTechnical : public Base {
void save();
- QCString charset() const { return c_harset; }
- QStringList composerCharsets() { return c_omposerCharsets; }
- int indexForCharset(const QCString &str);
- QCString findComposerCharset(QCString cs);
+ TQCString charset() const { return c_harset; }
+ TQStringList composerCharsets() { return c_omposerCharsets; }
+ int indexForCharset(const TQCString &str);
+ TQCString findComposerCharset(TQCString cs);
bool allow8BitBody() const { return a_llow8BitBody; }
bool useOwnCharset() const { return u_seOwnCharset; }
bool generateMessageID()const { return g_enerateMID; }
- QCString hostname()const { return h_ostname; }
+ TQCString hostname()const { return h_ostname; }
XHeaders& xHeaders() { return x_headers; }
bool noUserAgent()const { return d_ontIncludeUA; }
bool useExternalMailer()const { return u_seExternalMailer; }
protected:
- QCString c_harset,
+ TQCString c_harset,
h_ostname;
- QStringList c_omposerCharsets;
+ TQStringList c_omposerCharsets;
bool a_llow8BitBody,
u_seOwnCharset,
@@ -437,7 +437,7 @@ class KDE_EXPORT PostNewsTechnical : public Base {
XHeaders x_headers;
- QAsciiDict<QCString> findComposerCSCache;
+ TQAsciiDict<TQCString> findComposerCSCache;
};
@@ -455,12 +455,12 @@ class PostNewsComposer : public Base {
int maxLineLength()const { return m_axLen; }
bool appendOwnSignature()const { return a_ppSig; }
- QString intro()const { return i_ntro; }
+ TQString intro()const { return i_ntro; }
bool rewrap()const { return r_ewrap; }
bool includeSignature()const { return i_ncSig; }
bool cursorOnTop()const { return c_ursorOnTop; }
- QString externalEditor()const { return e_xternalEditor; }
+ TQString externalEditor()const { return e_xternalEditor; }
bool useExternalEditor()const { return u_seExtEditor; }
@@ -472,7 +472,7 @@ class PostNewsComposer : public Base {
i_ncSig,
c_ursorOnTop,
u_seExtEditor;
- QString i_ntro,
+ TQString i_ntro,
e_xternalEditor;
};
@@ -526,7 +526,7 @@ class KDE_EXPORT Cleanup : public Base {
/** use default cleanup configuration */
bool mDefault;
/** last expiration and last comapction date */
- QDateTime mLastExpDate, mLastCompDate;
+ TQDateTime mLastExpDate, mLastCompDate;
};