From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001
From: tpearson
Date: Sat, 31 Jul 2010 19:48:06 +0000
Subject: Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
kopete/libkopete/avdevice/kxv.cpp | 32 +-
kopete/libkopete/avdevice/kxv.h | 40 +-
kopete/libkopete/avdevice/qvideo.cpp | 4 +-
kopete/libkopete/avdevice/qvideostream.cpp | 82 ++--
kopete/libkopete/avdevice/qvideostream.h | 24 +-
kopete/libkopete/avdevice/videocontrol.h | 6 +-
kopete/libkopete/avdevice/videodevice.cpp | 44 +-
kopete/libkopete/avdevice/videodevice.h | 36 +-
kopete/libkopete/avdevice/videodevicemodelpool.cpp | 2 +-
kopete/libkopete/avdevice/videodevicemodelpool.h | 10 +-
kopete/libkopete/avdevice/videodevicepool.cpp | 78 ++--
kopete/libkopete/avdevice/videodevicepool.h | 16 +-
kopete/libkopete/avdevice/videoinput.h | 8 +-
kopete/libkopete/clientiface.h | 14 +-
.../compat/kpixmapregionselectordialog.cpp | 50 +--
.../libkopete/compat/kpixmapregionselectordialog.h | 12 +-
.../compat/kpixmapregionselectorwidget.cpp | 104 ++---
.../libkopete/compat/kpixmapregionselectorwidget.h | 40 +-
kopete/libkopete/connectionmanager.cpp | 18 +-
kopete/libkopete/connectionmanager.h | 16 +-
kopete/libkopete/kabcpersistence.cpp | 96 ++--
kopete/libkopete/kabcpersistence.h | 6 +-
kopete/libkopete/kautoconfig.cpp | 224 +++++-----
kopete/libkopete/kautoconfig.h | 44 +-
kopete/libkopete/kcautoconfigmodule.cpp | 30 +-
kopete/libkopete/kcautoconfigmodule.h | 14 +-
kopete/libkopete/knotification.cpp | 150 +++----
kopete/libkopete/knotification.h | 40 +-
kopete/libkopete/kopeteaccount.cpp | 116 ++---
kopete/libkopete/kopeteaccount.h | 64 +--
kopete/libkopete/kopeteaccountmanager.cpp | 84 ++--
kopete/libkopete/kopeteaccountmanager.h | 22 +-
kopete/libkopete/kopeteaway.cpp | 52 +--
kopete/libkopete/kopeteaway.h | 24 +-
kopete/libkopete/kopeteawayaction.cpp | 42 +-
kopete/libkopete/kopeteawayaction.h | 18 +-
kopete/libkopete/kopeteawaydialog.cpp | 10 +-
kopete/libkopete/kopeteawaydialog.h | 8 +-
kopete/libkopete/kopeteblacklister.cpp | 26 +-
kopete/libkopete/kopeteblacklister.h | 18 +-
kopete/libkopete/kopetechatsession.cpp | 92 ++--
kopete/libkopete/kopetechatsession.h | 32 +-
kopete/libkopete/kopetechatsessionmanager.cpp | 44 +-
kopete/libkopete/kopetechatsessionmanager.h | 18 +-
kopete/libkopete/kopetecommandhandler.cpp | 152 +++----
kopete/libkopete/kopetecommandhandler.h | 60 +--
kopete/libkopete/kopetecontact.cpp | 220 ++++-----
kopete/libkopete/kopetecontact.h | 76 ++--
kopete/libkopete/kopetecontactlist.cpp | 496 ++++++++++-----------
kopete/libkopete/kopetecontactlist.h | 66 +--
kopete/libkopete/kopetecontactlistelement.cpp | 120 ++---
kopete/libkopete/kopetecontactlistelement.h | 30 +-
kopete/libkopete/kopetecontactproperty.cpp | 20 +-
kopete/libkopete/kopetecontactproperty.h | 26 +-
kopete/libkopete/kopeteeventpresentation.cpp | 18 +-
kopete/libkopete/kopeteeventpresentation.h | 12 +-
kopete/libkopete/kopeteglobal.cpp | 92 ++--
kopete/libkopete/kopeteglobal.h | 18 +-
kopete/libkopete/kopetegroup.cpp | 80 ++--
kopete/libkopete/kopetegroup.h | 20 +-
kopete/libkopete/kopetemessage.cpp | 262 +++++------
kopete/libkopete/kopetemessage.h | 82 ++--
kopete/libkopete/kopetemessageevent.cpp | 6 +-
kopete/libkopete/kopetemessageevent.h | 4 +-
kopete/libkopete/kopetemessagehandler.cpp | 6 +-
kopete/libkopete/kopetemessagehandler.h | 8 +-
kopete/libkopete/kopetemessagehandlerchain.cpp | 16 +-
kopete/libkopete/kopetemessagehandlerchain.h | 4 +-
kopete/libkopete/kopetemetacontact.cpp | 334 +++++++-------
kopete/libkopete/kopetemetacontact.h | 72 +--
kopete/libkopete/kopetemimesourcefactory.cpp | 32 +-
kopete/libkopete/kopetemimesourcefactory.h | 4 +-
kopete/libkopete/kopetemimetypehandler.cpp | 40 +-
kopete/libkopete/kopetemimetypehandler.h | 16 +-
kopete/libkopete/kopetenotifydataobject.cpp | 86 ++--
kopete/libkopete/kopetenotifydataobject.h | 16 +-
kopete/libkopete/kopetenotifyevent.cpp | 34 +-
kopete/libkopete/kopetenotifyevent.h | 10 +-
kopete/libkopete/kopeteonlinestatus.cpp | 50 +--
kopete/libkopete/kopeteonlinestatus.h | 42 +-
kopete/libkopete/kopeteonlinestatusmanager.cpp | 90 ++--
kopete/libkopete/kopeteonlinestatusmanager.h | 16 +-
kopete/libkopete/kopetepassword.cpp | 98 ++--
kopete/libkopete/kopetepassword.h | 28 +-
kopete/libkopete/kopetepasswordedaccount.cpp | 22 +-
kopete/libkopete/kopetepasswordedaccount.h | 10 +-
kopete/libkopete/kopetepicture.cpp | 50 +--
kopete/libkopete/kopetepicture.h | 40 +-
kopete/libkopete/kopeteplugin.cpp | 30 +-
kopete/libkopete/kopeteplugin.h | 26 +-
kopete/libkopete/kopetepluginmanager.cpp | 124 +++---
kopete/libkopete/kopetepluginmanager.h | 30 +-
kopete/libkopete/kopeteprefs.cpp | 92 ++--
kopete/libkopete/kopeteprefs.h | 108 ++---
kopete/libkopete/kopeteproperties.cpp | 12 +-
kopete/libkopete/kopeteproperties.h | 42 +-
kopete/libkopete/kopeteprotocol.cpp | 98 ++--
kopete/libkopete/kopeteprotocol.h | 16 +-
kopete/libkopete/kopetesimplemessagehandler.cpp | 8 +-
kopete/libkopete/kopetesimplemessagehandler.h | 2 +-
kopete/libkopete/kopetetask.cpp | 26 +-
kopete/libkopete/kopetetask.h | 12 +-
kopete/libkopete/kopetetransfermanager.cpp | 48 +-
kopete/libkopete/kopetetransfermanager.h | 44 +-
kopete/libkopete/kopeteuiglobal.cpp | 8 +-
kopete/libkopete/kopeteuiglobal.h | 6 +-
kopete/libkopete/kopeteutils.cpp | 52 +--
kopete/libkopete/kopeteutils.h | 36 +-
kopete/libkopete/kopetewalletmanager.cpp | 26 +-
kopete/libkopete/kopetewalletmanager.h | 4 +-
kopete/libkopete/managedconnectionaccount.cpp | 14 +-
kopete/libkopete/managedconnectionaccount.h | 10 +-
kopete/libkopete/networkstatuscommon.cpp | 4 +-
kopete/libkopete/networkstatuscommon.h | 12 +-
kopete/libkopete/private/kopetecommand.cpp | 34 +-
kopete/libkopete/private/kopetecommand.h | 30 +-
kopete/libkopete/private/kopeteemoticons.cpp | 170 +++----
kopete/libkopete/private/kopeteemoticons.h | 36 +-
kopete/libkopete/private/kopeteutils_private.cpp | 6 +-
kopete/libkopete/private/kopeteutils_private.h | 14 +-
kopete/libkopete/private/kopeteviewmanager.cpp | 62 +--
kopete/libkopete/private/kopeteviewmanager.h | 2 +-
kopete/libkopete/tests/kopetecontactlist_test.cpp | 10 +-
kopete/libkopete/tests/kopeteemoticontest.cpp | 42 +-
kopete/libkopete/tests/kopetemessage_test.cpp | 110 ++---
.../libkopete/tests/kopetepasswordtest_program.cpp | 32 +-
.../libkopete/tests/kopetepasswordtest_program.h | 6 +-
kopete/libkopete/tests/kopetepropertiestest.cpp | 12 +-
.../libkopete/tests/kopetewallettest_program.cpp | 24 +-
kopete/libkopete/tests/kopetewallettest_program.h | 2 +-
kopete/libkopete/tests/mock/kopeteaccount_mock.cpp | 6 +-
kopete/libkopete/tests/mock/kopeteaccount_mock.h | 6 +-
kopete/libkopete/tests/mock/kopetecontact_mock.cpp | 2 +-
kopete/libkopete/tests/mock/kopetecontact_mock.h | 2 +-
.../libkopete/tests/mock/kopeteprotocol_mock.cpp | 8 +-
kopete/libkopete/tests/mock/kopeteprotocol_mock.h | 8 +-
kopete/libkopete/ui/accountselector.cpp | 36 +-
kopete/libkopete/ui/accountselector.h | 8 +-
kopete/libkopete/ui/addcontactpage.cpp | 2 +-
kopete/libkopete/ui/addcontactpage.h | 4 +-
kopete/libkopete/ui/addressbooklinkwidget.cpp | 22 +-
kopete/libkopete/ui/addressbooklinkwidget.h | 8 +-
kopete/libkopete/ui/addressbookselectordialog.cpp | 22 +-
kopete/libkopete/ui/addressbookselectordialog.h | 6 +-
kopete/libkopete/ui/addressbookselectorwidget.cpp | 46 +-
kopete/libkopete/ui/addressbookselectorwidget.h | 8 +-
kopete/libkopete/ui/addresseeitem.cpp | 18 +-
kopete/libkopete/ui/addresseeitem.h | 8 +-
kopete/libkopete/ui/contactaddednotifydialog.cpp | 38 +-
kopete/libkopete/ui/contactaddednotifydialog.h | 14 +-
kopete/libkopete/ui/editaccountwidget.h | 2 +-
kopete/libkopete/ui/kopetecontactaction.cpp | 8 +-
kopete/libkopete/ui/kopetecontactaction.h | 2 +-
kopete/libkopete/ui/kopetefileconfirmdialog.cpp | 22 +-
kopete/libkopete/ui/kopetefileconfirmdialog.h | 8 +-
kopete/libkopete/ui/kopetelistview.cpp | 60 +--
kopete/libkopete/ui/kopetelistview.h | 10 +-
kopete/libkopete/ui/kopetelistviewitem.cpp | 246 +++++-----
kopete/libkopete/ui/kopetelistviewitem.h | 70 +--
kopete/libkopete/ui/kopetelistviewsearchline.cpp | 18 +-
kopete/libkopete/ui/kopetelistviewsearchline.h | 12 +-
kopete/libkopete/ui/kopetepasswordwidget.cpp | 32 +-
kopete/libkopete/ui/kopetepasswordwidget.h | 8 +-
kopete/libkopete/ui/kopetestdaction.cpp | 50 +--
kopete/libkopete/ui/kopetestdaction.h | 46 +-
kopete/libkopete/ui/kopeteview.cpp | 4 +-
kopete/libkopete/ui/kopeteview.h | 20 +-
kopete/libkopete/ui/kopeteviewplugin.cpp | 2 +-
kopete/libkopete/ui/kopeteviewplugin.h | 2 +-
kopete/libkopete/ui/kopetewidgets.cpp | 92 ++--
kopete/libkopete/ui/metacontactselectorwidget.cpp | 74 +--
kopete/libkopete/ui/metacontactselectorwidget.h | 12 +-
kopete/libkopete/ui/userinfodialog.cpp | 82 ++--
kopete/libkopete/ui/userinfodialog.h | 32 +-
kopete/libkopete/webcamwidget.cpp | 36 +-
kopete/libkopete/webcamwidget.h | 18 +-
176 files changed, 3808 insertions(+), 3808 deletions(-)
(limited to 'kopete/libkopete')
diff --git a/kopete/libkopete/avdevice/kxv.cpp b/kopete/libkopete/avdevice/kxv.cpp
index 942a823b..f573bd50 100644
--- a/kopete/libkopete/avdevice/kxv.cpp
+++ b/kopete/libkopete/avdevice/kxv.cpp
@@ -21,8 +21,8 @@
#include
-#include
-#include
+#include
+#include
#include
@@ -177,7 +177,7 @@ bool KXv::init(Drawable d)
#endif
}
-bool KXvDevice::grabStill(QImage* /*pix*/, int /*dw*/, int /*dh*/)
+bool KXvDevice::grabStill(TQImage* /*pix*/, int /*dw*/, int /*dh*/)
{
#ifndef HAVE_LIBXV
return false;
@@ -186,14 +186,14 @@ bool KXvDevice::grabStill(QImage* /*pix*/, int /*dw*/, int /*dh*/)
#endif
}
-int KXvDevice::displayImage(QWidget *widget, const unsigned char *const data, int w, int h, int dw, int dh)
+int KXvDevice::displayImage(TQWidget *widget, const unsigned char *const data, int w, int h, int dw, int dh)
{
if (!widget)
return -1;
return displayImage(widget->winId(), data, w, h, 0, 0, w, h, dw, dh);
}
-int KXvDevice::displayImage(QWidget *widget, const unsigned char *const data, int w, int h, int x, int y, int sw, int sh, int dw, int dh)
+int KXvDevice::displayImage(TQWidget *widget, const unsigned char *const data, int w, int h, int x, int y, int sw, int sh, int dw, int dh)
{
if (!widget)
return -1;
@@ -255,7 +255,7 @@ int KXvDevice::displayImage(Window win, const unsigned char *const data, int w,
}
-bool KXvDevice::startVideo(QWidget *w, int dw, int dh)
+bool KXvDevice::startVideo(TQWidget *w, int dw, int dh)
{
if (!w) return false;
return startVideo(w->winId(), dw, dh);
@@ -338,7 +338,7 @@ KXvDevice::KXvDevice()
xv_attr = NULL;
xv_port = -1;
xv_encoding = -1;
- xv_name = QString::null;
+ xv_name = TQString::null;
xv_type = -1;
xv_adaptor = -1;
_shm = false;
@@ -443,7 +443,7 @@ bool KXvDevice::init()
kdDebug() << "Image formats for port " << xv_port << endl;
for (int i = 0; i < xv_formats; i++) {
assert(fo);
- QString imout;
+ TQString imout;
imout.sprintf(" 0x%x (%c%c%c%c) %s",
fo[i].id,
fo[i].id & 0xff,
@@ -463,7 +463,7 @@ bool KXvDevice::init()
}
-bool KXvDevice::supportsWidget(QWidget *w)
+bool KXvDevice::supportsWidget(TQWidget *w)
{
#ifndef HAVE_LIBXV
return false;
@@ -509,7 +509,7 @@ const KXvDeviceAttributes& KXvDevice::attributes()
}
-bool KXvDevice::getAttributeRange(const QString& attribute, int *min, int *max)
+bool KXvDevice::getAttributeRange(const TQString& attribute, int *min, int *max)
{
for (KXvDeviceAttribute *at = _attrs.first(); at != NULL; at = _attrs.next()) {
if (at->name == attribute) {
@@ -522,7 +522,7 @@ bool KXvDevice::getAttributeRange(const QString& attribute, int *min, int *max)
}
-bool KXvDevice::getAttribute(const QString& attribute, int *val)
+bool KXvDevice::getAttribute(const TQString& attribute, int *val)
{
#ifndef HAVE_LIBXV
return false;
@@ -539,7 +539,7 @@ bool KXvDevice::getAttribute(const QString& attribute, int *val)
}
-bool KXvDevice::setAttribute(const QString& attribute, int val)
+bool KXvDevice::setAttribute(const TQString& attribute, int val)
{
#ifndef HAVE_LIBXV
return false;
@@ -556,7 +556,7 @@ bool KXvDevice::setAttribute(const QString& attribute, int val)
}
-const QString& KXvDevice::name() const
+const TQString& KXvDevice::name() const
{
return xv_name;
}
@@ -567,12 +567,12 @@ int KXvDevice::port() const
return xv_port;
}
-const QStringList& KXvDevice::encodings() const
+const TQStringList& KXvDevice::encodings() const
{
return _encodingList;
}
-bool KXvDevice::encoding(QString& encoding)
+bool KXvDevice::encoding(TQString& encoding)
{
#ifndef HAVE_LIBXV
return false;
@@ -591,7 +591,7 @@ bool KXvDevice::encoding(QString& encoding)
#endif
}
-bool KXvDevice::setEncoding(const QString& e)
+bool KXvDevice::setEncoding(const TQString& e)
{
#ifdef HAVE_LIBXV
for (unsigned int i = 0; i < xv_encodings; i++) {
diff --git a/kopete/libkopete/avdevice/kxv.h b/kopete/libkopete/avdevice/kxv.h
index 6f7602bf..8b3e14dd 100644
--- a/kopete/libkopete/avdevice/kxv.h
+++ b/kopete/libkopete/avdevice/kxv.h
@@ -24,9 +24,9 @@
#include
#include
-#include
-#include
-#include
+#include
+#include
+#include
class QWidget;
class QImage;
@@ -35,7 +35,7 @@ class KXvPrivate;
class KXvDevice;
class KXvDevicePrivate;
-typedef QPtrList KXvDeviceList;
+typedef TQPtrList KXvDeviceList;
class KXv
@@ -81,7 +81,7 @@ private:
class KXvDeviceAttribute
{
public:
- QString name;
+ TQString name;
int min;
int max;
int flags;
@@ -89,7 +89,7 @@ public:
Atom atom();
};
-typedef QPtrList KXvDeviceAttributes;
+typedef TQPtrList KXvDeviceAttributes;
class KXvDevice
@@ -108,41 +108,41 @@ public:
/*
* return the range for a given attribute
*/
- bool getAttributeRange(const QString& attribute, int *min, int *max);
+ bool getAttributeRange(const TQString& attribute, int *min, int *max);
/*
* get the current value of a given attribute
*/
- bool getAttribute(const QString& attribute, int *val);
+ bool getAttribute(const TQString& attribute, int *val);
/*
* set the current value of a given attribute
*/
- bool setAttribute(const QString& attribute, int val);
+ bool setAttribute(const TQString& attribute, int val);
- bool grabStill(QImage *pix, int dw, int dh);
+ bool grabStill(TQImage *pix, int dw, int dh);
/*
* True if this device can operate on the given widget
*/
- bool supportsWidget(QWidget *w);
+ bool supportsWidget(TQWidget *w);
/*
* Display the given image with Xv.
*/
- int displayImage(QWidget *widget, const unsigned char *const data, int w, int h, int dw, int dh);
+ int displayImage(TQWidget *widget, const unsigned char *const data, int w, int h, int dw, int dh);
int displayImage(Window win, const unsigned char *const data, int w, int h, int dw, int dh);
/*
* Display a portion of the given image with Xv.
*/
- int displayImage(QWidget *widget, const unsigned char *const data, int w, int h, int x, int y, int sw, int sh, int dw, int dh);
+ int displayImage(TQWidget *widget, const unsigned char *const data, int w, int h, int x, int y, int sw, int sh, int dw, int dh);
int displayImage(Window win, const unsigned char *const data, int w, int h, int x, int y, int sw, int sh, int dw, int dh);
/*
* Start a video stream in widget w, width dw, height dh
*/
- bool startVideo(QWidget *w, int dw, int dh);
+ bool startVideo(TQWidget *w, int dw, int dh);
bool startVideo(Window w, int dw, int dh);
/*
@@ -168,7 +168,7 @@ public:
/*
* Name of the device
*/
- const QString& name() const;
+ const TQString& name() const;
/*
* The Xv port for this device
@@ -178,17 +178,17 @@ public:
/*
* The list of encodings/norms available
*/
- const QStringList& encodings() const;
+ const TQStringList& encodings() const;
/*
* get encoding
*/
- bool encoding(QString& encoding);
+ bool encoding(TQString& encoding);
/*
* Set the encoding to the given one. This should be taken from the list.
*/
- bool setEncoding(const QString& e);
+ bool setEncoding(const TQString& e);
/*
* Set the image format. (ex YUV)
@@ -218,7 +218,7 @@ protected:
KXvDeviceAttributes _attrs;
int xv_type, xv_adaptor;
- QString xv_name;
+ TQString xv_name;
int xv_port;
unsigned int xv_encodings;
int xv_encoding;
@@ -228,7 +228,7 @@ protected:
GC xv_gc;
Window xv_last_win;
- QStringList _encodingList;
+ TQStringList _encodingList;
int xv_formats;
void *xv_formatvalues;
diff --git a/kopete/libkopete/avdevice/qvideo.cpp b/kopete/libkopete/avdevice/qvideo.cpp
index 8d153e58..d8d91602 100644
--- a/kopete/libkopete/avdevice/qvideo.cpp
+++ b/kopete/libkopete/avdevice/qvideo.cpp
@@ -27,7 +27,7 @@
#include "qvideo.h"
#include
-#include
+#include
#include
#include
@@ -71,7 +71,7 @@ bool QVideo::findDisplayProperties(ImageFormat& fmt, int& depth, unsigned int& b
int bpp = 0;
int d = 0;
- vi_out.screen = QPaintDevice::x11AppScreen();
+ vi_out.screen = TQPaintDevice::x11AppScreen();
vi_in = XGetVisualInfo(qt_xdisplay(), mask, &vi_out, &nvis);
if (vi_in) {
diff --git a/kopete/libkopete/avdevice/qvideostream.cpp b/kopete/libkopete/avdevice/qvideostream.cpp
index 18773946..05bbf209 100644
--- a/kopete/libkopete/avdevice/qvideostream.cpp
+++ b/kopete/libkopete/avdevice/qvideostream.cpp
@@ -20,9 +20,9 @@
*/
#include "qvideostream.h"
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include "kxv.h"
@@ -43,30 +43,30 @@ extern "C" {
class QVideoStreamGLWidget : public QGLWidget
{
public:
- QVideoStreamGLWidget(QWidget* parent = 0, const char* name = 0);
+ QVideoStreamGLWidget(TQWidget* parent = 0, const char* name = 0);
virtual ~QVideoStreamGLWidget();
- void setInputSize(const QSize& sz);
+ void setInputSize(const TQSize& sz);
void display(const unsigned char *const img, int x, int y, int sw, int sh);
private:
virtual void resizeGL(int w, int h);
void initializeGL();
- virtual bool eventFilter( QObject *o, QEvent *e );
- void calc(QPoint& p, QPoint& v);
+ virtual bool eventFilter( TQObject *o, TQEvent *e );
+ void calc(TQPoint& p, TQPoint& v);
- QSize _inputSize;
+ TQSize _inputSize;
GLuint _tex;
int _tw, _th;
- QWidget* _w;
+ TQWidget* _w;
int _maxGL;
- QSize _sz;
+ TQSize _sz;
bool _glfun;
- QPoint _ul, _ur, _ll, _lr;
- QPoint _vul, _vur, _vll, _vlr;
- QTimer* _glfunTimer;
+ TQPoint _ul, _ur, _ll, _lr;
+ TQPoint _vul, _vur, _vll, _vlr;
+ TQTimer* _glfunTimer;
};
#endif
@@ -98,8 +98,8 @@ QVideoStreamPrivate::~QVideoStreamPrivate()
delete xvHandle;
}
-QVideoStream::QVideoStream(QWidget *widget, const char* name)
- : QObject(widget, name),
+QVideoStream::QVideoStream(TQWidget *widget, const char* name)
+ : TQObject(widget, name),
d(new QVideoStreamPrivate),
_w(widget),
_methods(METHOD_NONE),
@@ -127,7 +127,7 @@ QVideoStream::QVideoStream(QWidget *widget, const char* name)
}
#ifdef HAVE_GL
- if (QGLFormat::hasOpenGL()) {
+ if (TQGLFormat::hasOpenGL()) {
_methods = (VideoMethod)(_methods | METHOD_GL);
}
#endif
@@ -309,7 +309,7 @@ QVideo::VideoMethod QVideoStream::setMethod(VideoMethod method)
return _method;
}
-QSize QVideoStream::maxSize() const
+TQSize QVideoStream::maxSize() const
{
return _size;
}
@@ -324,7 +324,7 @@ int QVideoStream::maxHeight() const
return _size.height();
}
-QSize QVideoStream::size() const
+TQSize QVideoStream::size() const
{
return _size;
}
@@ -339,7 +339,7 @@ int QVideoStream::height() const
return _size.height();
}
-QSize QVideoStream::setSize(const QSize& sz)
+TQSize QVideoStream::setSize(const TQSize& sz)
{
_size = sz;
return _size;
@@ -365,7 +365,7 @@ int QVideoStream::setHeight(int height)
return _size.height();
}
-QSize QVideoStream::inputSize() const
+TQSize QVideoStream::inputSize() const
{
return _inputSize;
}
@@ -380,7 +380,7 @@ int QVideoStream::inputHeight() const
return _inputSize.height();
}
-QSize QVideoStream::setInputSize(const QSize& sz)
+TQSize QVideoStream::setInputSize(const TQSize& sz)
{
if (sz == _inputSize)
return _inputSize;
@@ -532,19 +532,19 @@ QVideoStream& QVideoStream::operator<<(const unsigned char *const img)
// ---------------------------------------------------------------------------------------
#ifdef HAVE_GL
-QVideoStreamGLWidget::QVideoStreamGLWidget(QWidget* parent, const char* name)
- : QGLWidget(QGLFormat(QGL::DoubleBuffer | QGL::Rgba | QGL::DirectRendering), parent, name),
+QVideoStreamGLWidget::QVideoStreamGLWidget(TQWidget* parent, const char* name)
+ : TQGLWidget(TQGLFormat(TQGL::DoubleBuffer | TQGL::Rgba | TQGL::DirectRendering), parent, name),
_tex(0),
_w(parent),
_glfun(false)
{
kdDebug() << "QVideoStreamGLWidget::QVideoStreamGLWidget()" << endl;
- connect(_w, SIGNAL(resized(int, int)),
- this, SLOT(resize(int, int)));
+ connect(_w, TQT_SIGNAL(resized(int, int)),
+ this, TQT_SLOT(resize(int, int)));
topLevelWidget()->installEventFilter(this);
- _glfunTimer = new QTimer();
+ _glfunTimer = new TQTimer();
}
QVideoStreamGLWidget::~QVideoStreamGLWidget()
@@ -558,12 +558,12 @@ QVideoStreamGLWidget::~QVideoStreamGLWidget()
}
}
-bool QVideoStreamGLWidget::eventFilter(QObject*, QEvent* e)
+bool QVideoStreamGLWidget::eventFilter(TQObject*, TQEvent* e)
{
- // For some reason, KeyPress does not work (yields 2), QEvent::KeyPress is unknown... What the f...????
+ // For some reason, KeyPress does not work (yields 2), TQEvent::KeyPress is unknown... What the f...????
// I am too lazy to scan the header files for the reason.
if(e->type() == 6) {
- QKeyEvent* ke = static_cast(e);
+ TQKeyEvent* ke = static_cast(e);
if(ke->key() == Qt::Key_Pause) {
_glfunTimer->start(500, true);
} else if (_glfunTimer->isActive() && (ke->key() == Qt::Key_Escape)) {
@@ -578,7 +578,7 @@ void QVideoStreamGLWidget::initializeGL()
kdDebug() << "QVideoStreamGLWidget::initializeGL()" << endl;
setAutoBufferSwap(false);
- QGLFormat f = format();
+ TQGLFormat f = format();
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &_maxGL);
kdDebug() << "OpenGL capabilities (* = required):" << endl;
kdDebug() << " Valid context*: " << isValid() << endl;
@@ -598,15 +598,15 @@ void QVideoStreamGLWidget::initializeGL()
glShadeModel(GL_FLAT);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
- _vul = QPoint( 4, 10);
- _vur = QPoint(-8, 4);
- _vll = QPoint(10, -4);
- _vlr = QPoint(-8, -10);
+ _vul = TQPoint( 4, 10);
+ _vur = TQPoint(-8, 4);
+ _vll = TQPoint(10, -4);
+ _vlr = TQPoint(-8, -10);
}
void QVideoStreamGLWidget::resizeGL(int w, int h)
{
- _sz = QSize(w, h);
+ _sz = TQSize(w, h);
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
@@ -615,13 +615,13 @@ void QVideoStreamGLWidget::resizeGL(int w, int h)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- _ul = QPoint(0, 0);
- _ur = QPoint(w, 0);
- _ll = QPoint(0, h);
- _lr = QPoint(w, h);
+ _ul = TQPoint(0, 0);
+ _ur = TQPoint(w, 0);
+ _ll = TQPoint(0, h);
+ _lr = TQPoint(w, h);
}
-void QVideoStreamGLWidget::setInputSize(const QSize& sz)
+void QVideoStreamGLWidget::setInputSize(const TQSize& sz)
{
makeCurrent();
@@ -705,7 +705,7 @@ void QVideoStreamGLWidget::display(const unsigned char *const img, int x, int y,
glDisable(GL_TEXTURE_2D);
}
-void QVideoStreamGLWidget::calc(QPoint& p, QPoint& v)
+void QVideoStreamGLWidget::calc(TQPoint& p, TQPoint& v)
{
p += v;
diff --git a/kopete/libkopete/avdevice/qvideostream.h b/kopete/libkopete/avdevice/qvideostream.h
index f1b0ca24..24b7fb40 100644
--- a/kopete/libkopete/avdevice/qvideostream.h
+++ b/kopete/libkopete/avdevice/qvideostream.h
@@ -29,11 +29,11 @@
#endif
#ifdef HAVE_GL
-#include
+#include
#include
#endif
-#include
+#include
#include "qvideo.h"
class QVideoStreamPrivate;
@@ -41,12 +41,12 @@ class QVideoStreamPrivate;
/**
* QT-style video stream driver.
*/
-class QVideoStream : public QObject, public QVideo
+class QVideoStream : public TQObject, public QVideo
{
Q_OBJECT
public:
- QVideoStream(QWidget *widget, const char* name = 0);
+ QVideoStream(TQWidget *widget, const char* name = 0);
~QVideoStream();
/* output method */
@@ -55,25 +55,25 @@ public:
VideoMethod setMethod(VideoMethod method);
/* max output sizes */
- QSize maxSize() const;
+ TQSize maxSize() const;
int maxWidth() const;
int maxHeight() const;
/* output sizes */
- QSize size() const;
+ TQSize size() const;
int width() const;
int height() const;
- QSize setSize(const QSize& sz);
+ TQSize setSize(const TQSize& sz);
int setWidth(int width);
int setHeight(int height);
/* input sizes */
- QSize inputSize() const;
+ TQSize inputSize() const;
int inputWidth() const;
int inputHeight() const;
- QSize setInputSize(const QSize& sz);
+ TQSize setInputSize(const TQSize& sz);
int setInputWidth(int width);
int setInputHeight(int height);
@@ -95,12 +95,12 @@ public slots:
private:
QVideoStreamPrivate* d;
- QWidget* _w;
+ TQWidget* _w;
VideoMethod _methods; // list of methods
VideoMethod _method; // the current method
ImageFormat _format;
- QSize _size;
- QSize _inputSize;
+ TQSize _size;
+ TQSize _inputSize;
bool _init;
ImageFormat _xFormat;
diff --git a/kopete/libkopete/avdevice/videocontrol.h b/kopete/libkopete/avdevice/videocontrol.h
index 2675be6e..c4db3b9d 100644
--- a/kopete/libkopete/avdevice/videocontrol.h
+++ b/kopete/libkopete/avdevice/videocontrol.h
@@ -30,9 +30,9 @@
#define __s64 long long
#endif // __s64
-#include
+#include
#include
-#include
+#include
#include "kopete_export.h"
namespace Kopete {
@@ -67,7 +67,7 @@ public:
protected:
__u32 m_id;
control_type m_type;
- QString m_name;
+ TQString m_name;
__s32 m_minimum;
__s32 m_maximum;
__s32 m_step;
diff --git a/kopete/libkopete/avdevice/videodevice.cpp b/kopete/libkopete/avdevice/videodevice.cpp
index ada02ae5..00ab8266 100644
--- a/kopete/libkopete/avdevice/videodevice.cpp
+++ b/kopete/libkopete/avdevice/videodevice.cpp
@@ -71,7 +71,7 @@ void VideoDevice::enumerateMenu (void)
{
if (0 == xioctl (VIDIOC_QUERYMENU, &querymenu))
{
- kdDebug(14010) << k_funcinfo << " " << QString::fromLocal8Bit((const char*)querymenu.name) << endl;
+ kdDebug(14010) << k_funcinfo << " " << TQString::fromLocal8Bit((const char*)querymenu.name) << endl;
}
else
{
@@ -111,9 +111,9 @@ int VideoDevice::errnoReturn(const char* s)
}
/*!
- \fn VideoDevice::setFileName(QString name)
+ \fn VideoDevice::setFileName(TQString name)
*/
-int VideoDevice::setFileName(QString filename)
+int VideoDevice::setFileName(TQString filename)
{
/// @todo implement me
full_filename=filename;
@@ -133,7 +133,7 @@ int VideoDevice::open()
kdDebug(14010) << k_funcinfo << "Device is already open" << endl;
return EXIT_SUCCESS;
}
- descriptor = ::open (QFile::encodeName(full_filename), O_RDWR, 0);
+ descriptor = ::open (TQFile::encodeName(full_filename), O_RDWR, 0);
if(isOpen())
{
kdDebug(14010) << k_funcinfo << "File " << full_filename << " was opened successfuly" << endl;
@@ -200,7 +200,7 @@ int VideoDevice::checkDevice()
m_videocapture=true;
kdDebug(14010) << k_funcinfo << "checkDevice(): " << full_filename << " is a V4L2 device." << endl;
m_driver = VIDEODEV_DRIVER_V4L2;
- m_model=QString::fromLocal8Bit((const char*)V4L2_capabilities.card);
+ m_model=TQString::fromLocal8Bit((const char*)V4L2_capabilities.card);
// Detect maximum and minimum resolution supported by the V4L2 device
@@ -259,7 +259,7 @@ int VideoDevice::checkDevice()
if(inputisok==EXIT_SUCCESS)
{
VideoInput tempinput;
- tempinput.name = QString::fromLocal8Bit((const char*)videoinput.name);
+ tempinput.name = TQString::fromLocal8Bit((const char*)videoinput.name);
tempinput.hastuner = videoinput.type & V4L2_INPUT_TYPE_TUNER;
tempinput.m_standards = videoinput.std;
m_input.push_back(tempinput);
@@ -300,8 +300,8 @@ for (currentid = V4L2_CID_BASE; currentid < V4L2_CID_LASTP1; currentid++)
if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
continue;
-//kdDebug(14010) << k_funcinfo << " Control: " << QString::fromLocal8Bit((const char*)queryctrl.name) << endl;
-kdDebug(14010) << k_funcinfo << " Control: " << QString::fromLocal8Bit((const char*)queryctrl.name) << " Values from " << queryctrl.minimum << " to " << queryctrl.maximum << " with steps of " << queryctrl.step << ". Default: " << queryctrl.default_value << endl;
+//kdDebug(14010) << k_funcinfo << " Control: " << TQString::fromLocal8Bit((const char*)queryctrl.name) << endl;
+kdDebug(14010) << k_funcinfo << " Control: " << TQString::fromLocal8Bit((const char*)queryctrl.name) << " Values from " << queryctrl.minimum << " to " << queryctrl.maximum << " with steps of " << queryctrl.step << ". Default: " << queryctrl.default_value << endl;
/* switch (queryctrl.type)
{
@@ -332,7 +332,7 @@ for (currentid = V4L2_CID_PRIVATE_BASE;; currentid++)
if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
continue;
-kdDebug(14010) << k_funcinfo << " Control: " << QString::fromLocal8Bit((const char*)queryctrl.name) << " Values from " << queryctrl.minimum << " to " << queryctrl.maximum << " with steps of " << queryctrl.step << ". Default: " << queryctrl.default_value << endl;
+kdDebug(14010) << k_funcinfo << " Control: " << TQString::fromLocal8Bit((const char*)queryctrl.name) << " Values from " << queryctrl.minimum << " to " << queryctrl.maximum << " with steps of " << queryctrl.step << ". Default: " << queryctrl.default_value << endl;
if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
enumerateMenu ();
@@ -376,7 +376,7 @@ kdDebug(14010) << k_funcinfo << " Control: " << QString::fromLocal8Bit((const c
{
kdDebug(14010) << k_funcinfo << full_filename << " is a V4L device." << endl;
m_driver = VIDEODEV_DRIVER_V4L;
- m_model=QString::fromLocal8Bit((const char*)V4L_capabilities.name);
+ m_model=TQString::fromLocal8Bit((const char*)V4L_capabilities.name);
if(V4L_capabilities.type & VID_TYPE_CAPTURE)
m_videocapture=true;
if(V4L_capabilities.type & VID_TYPE_CHROMAKEY)
@@ -405,7 +405,7 @@ kdDebug(14010) << k_funcinfo << " Control: " << QString::fromLocal8Bit((const c
if(inputisok==EXIT_SUCCESS)
{
VideoInput tempinput;
- tempinput.name = QString::fromLocal8Bit((const char*)videoinput.name);
+ tempinput.name = TQString::fromLocal8Bit((const char*)videoinput.name);
tempinput.hastuner=videoinput.flags & VIDEO_VC_TUNER;
// TODO: The routine to detect the appropriate video standards for V4L must be placed here
m_input.push_back(tempinput);
@@ -1190,15 +1190,15 @@ int VideoDevice::getFrame(imagebuffer *imgbuffer)
}
/*!
- \fn Kopete::AV::VideoDevice::getImage(const QImage *qimage)
+ \fn Kopete::AV::VideoDevice::getImage(const TQImage *qimage)
*/
-int VideoDevice::getImage(QImage *qimage)
+int VideoDevice::getImage(TQImage *qimage)
{
/// @todo implement me
// do NOT delete qimage here, as it is received as a parameter
if (qimage->width() != width() || qimage->height() != height())
- qimage->create(width(), height(),32, QImage::IgnoreEndian);
+ qimage->create(width(), height(),32, TQImage::IgnoreEndian);
uchar *bits=qimage->bits();
// kDebug() << "Capturing in " << pixelFormatName(m_currentbuffer.pixelformat);
@@ -2106,9 +2106,9 @@ int VideoDevice::pixelFormatDepth(pixel_format pixelformat)
return 0;
}
-QString VideoDevice::pixelFormatName(pixel_format pixelformat)
+TQString VideoDevice::pixelFormatName(pixel_format pixelformat)
{
- QString returnvalue;
+ TQString returnvalue;
returnvalue = "None";
switch(pixelformat)
{
@@ -2156,9 +2156,9 @@ QString VideoDevice::pixelFormatName(pixel_format pixelformat)
return returnvalue;
}
-QString VideoDevice::pixelFormatName(int pixelformat)
+TQString VideoDevice::pixelFormatName(int pixelformat)
{
- QString returnvalue;
+ TQString returnvalue;
returnvalue = "None";
switch(m_driver)
{
@@ -2410,9 +2410,9 @@ __u64 VideoDevice::signalStandardCode(signal_standard standard)
return STANDARD_NONE;
}
-QString VideoDevice::signalStandardName(signal_standard standard)
+TQString VideoDevice::signalStandardName(signal_standard standard)
{
- QString returnvalue;
+ TQString returnvalue;
returnvalue = "None";
switch(standard)
{
@@ -2455,9 +2455,9 @@ QString VideoDevice::signalStandardName(signal_standard standard)
return returnvalue;
}
-QString VideoDevice::signalStandardName(int standard)
+TQString VideoDevice::signalStandardName(int standard)
{
- QString returnvalue;
+ TQString returnvalue;
returnvalue = "None";
switch(m_driver)
{
diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h
index 982ab5f3..2482c183 100644
--- a/kopete/libkopete/avdevice/videodevice.h
+++ b/kopete/libkopete/avdevice/videodevice.h
@@ -61,10 +61,10 @@
#endif // __linux__
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include "videoinput.h"
@@ -191,7 +191,7 @@ struct imagebuffer
int height;
int width;
pixel_format pixelformat;
- QValueVector data; // maybe it should be a rawbuffer instead of it? It could make us avoid a memory copy
+ TQValueVector data; // maybe it should be a rawbuffer instead of it? It could make us avoid a memory copy
};
struct rawbuffer // raw buffer
{
@@ -204,7 +204,7 @@ class VideoDevice{
public:
VideoDevice();
~VideoDevice();
- int setFileName(QString filename);
+ int setFileName(TQString filename);
int open();
bool isOpen();
int checkDevice();
@@ -223,13 +223,13 @@ public:
int pixelFormatCode(pixel_format pixelformat);
pixel_format pixelFormatForPalette( int palette );
int pixelFormatDepth(pixel_format pixelformat);
- QString pixelFormatName(pixel_format pixelformat);
- QString pixelFormatName(int pixelformat);
+ TQString pixelFormatName(pixel_format pixelformat);
+ TQString pixelFormatName(int pixelformat);
int detectPixelFormats();
__u64 signalStandardCode(signal_standard standard);
- QString signalStandardName(signal_standard standard);
- QString signalStandardName(int standard);
+ TQString signalStandardName(signal_standard standard);
+ TQString signalStandardName(int standard);
int detectSignalStandards();
int currentInput();
@@ -238,7 +238,7 @@ public:
int startCapturing();
int getFrame();
int getFrame(imagebuffer *imgbuffer);
- int getImage(QImage *qimage);
+ int getImage(TQImage *qimage);
int stopCapturing();
int close();
@@ -268,10 +268,10 @@ public:
bool canAsyncIO();
bool canStream();
- QString m_model;
- QString m_name;
+ TQString m_model;
+ TQString m_name;
size_t m_modelindex; // Defines what's the number of a device when more than 1 device of a given model is present;
- QString full_filename;
+ TQString full_filename;
videodev_driver m_driver;
int descriptor;
@@ -292,16 +292,16 @@ void enumerateMenu (void);
struct video_capability V4L_capabilities;
struct video_buffer V4L_videobuffer;
#endif
- QValueVector m_input;
- QValueVector m_control;
-// QFile file;
+ TQValueVector m_input;
+ TQValueVector m_control;
+// TQFile file;
protected:
int currentwidth, minwidth, maxwidth, currentheight, minheight, maxheight;
bool m_disablemmap;
bool m_workaroundbrokendriver;
- QValueVector m_rawbuffers;
+ TQValueVector m_rawbuffers;
unsigned int m_streambuffers;
imagebuffer m_currentbuffer;
int m_buffer_size;
diff --git a/kopete/libkopete/avdevice/videodevicemodelpool.cpp b/kopete/libkopete/avdevice/videodevicemodelpool.cpp
index c6fc533e..875d926b 100644
--- a/kopete/libkopete/avdevice/videodevicemodelpool.cpp
+++ b/kopete/libkopete/avdevice/videodevicemodelpool.cpp
@@ -40,7 +40,7 @@ size_t VideoDeviceModelPool::size()
return m_devicemodel.size();
}
-size_t VideoDeviceModelPool::addModel( QString newmodel )
+size_t VideoDeviceModelPool::addModel( TQString newmodel )
{
VideoDeviceModel newdevicemodel;
newdevicemodel.model=newmodel;
diff --git a/kopete/libkopete/avdevice/videodevicemodelpool.h b/kopete/libkopete/avdevice/videodevicemodelpool.h
index 54d801c4..76499033 100644
--- a/kopete/libkopete/avdevice/videodevicemodelpool.h
+++ b/kopete/libkopete/avdevice/videodevicemodelpool.h
@@ -18,8 +18,8 @@
#ifndef KOPETE_AVVIDEODEVICEMODELPOOL_H
#define KOPETE_AVVIDEODEVICEMODELPOOL_H
-#include
-#include
+#include
+#include
#include
#include "kopete_export.h"
@@ -34,16 +34,16 @@ class VideoDeviceModelPool{
struct VideoDeviceModel
{
- QString model;
+ TQString model;
size_t count;
};
- QValueVector m_devicemodel;
+ TQValueVector m_devicemodel;
public:
VideoDeviceModelPool();
~VideoDeviceModelPool();
void clear();
size_t size();
- size_t addModel(QString newmodel);
+ size_t addModel(TQString newmodel);
};
}
diff --git a/kopete/libkopete/avdevice/videodevicepool.cpp b/kopete/libkopete/avdevice/videodevicepool.cpp
index 2651addb..39f6a7c7 100644
--- a/kopete/libkopete/avdevice/videodevicepool.cpp
+++ b/kopete/libkopete/avdevice/videodevicepool.cpp
@@ -24,7 +24,7 @@
#include
#include
-#include
+#include
#include "videodevice.h"
#include "videodevicepool.h"
@@ -414,9 +414,9 @@ int VideoDevicePool::getFrame()
}
/*!
- \fn VideoDevicePool::getQImage(QImage *qimage)
+ \fn VideoDevicePool::getQImage(TQImage *qimage)
*/
-int VideoDevicePool::getImage(QImage *qimage)
+int VideoDevicePool::getImage(TQImage *qimage)
{
// kdDebug(14010) << k_funcinfo << "VideoDevicePool::getImage() called." << endl;
if(m_videodevice.size())
@@ -424,7 +424,7 @@ int VideoDevicePool::getImage(QImage *qimage)
else
{
kdDebug(14010) << k_funcinfo << "VideoDevicePool::getImage() fallback for no device." << endl;
- qimage->create(m_buffer.width, m_buffer.height,32, QImage::IgnoreEndian);
+ qimage->create(m_buffer.width, m_buffer.height,32, TQImage::IgnoreEndian);
uchar *bits=qimage->bits();
switch(m_buffer.pixelformat)
{
@@ -609,9 +609,9 @@ int VideoDevicePool::scanDevices()
kdDebug(14010) << k_funcinfo << "called" << endl;
#if defined(__linux__) && defined(ENABLE_AV)
- QDir videodevice_dir;
- const QString videodevice_dir_path=QString::fromLocal8Bit("/dev/v4l/");
- const QString videodevice_dir_filter=QString::fromLocal8Bit("video*");
+ TQDir videodevice_dir;
+ const TQString videodevice_dir_path=TQString::fromLocal8Bit("/dev/v4l/");
+ const TQString videodevice_dir_filter=TQString::fromLocal8Bit("video*");
VideoDevice videodevice;
m_videodevice.clear();
@@ -619,8 +619,8 @@ int VideoDevicePool::scanDevices()
videodevice_dir.setPath(videodevice_dir_path);
videodevice_dir.setNameFilter(videodevice_dir_filter);
- videodevice_dir.setFilter( QDir::System | QDir::NoSymLinks | QDir::Readable | QDir::Writable );
- videodevice_dir.setSorting( QDir::Name );
+ videodevice_dir.setFilter( TQDir::System | TQDir::NoSymLinks | TQDir::Readable | TQDir::Writable );
+ videodevice_dir.setSorting( TQDir::Name );
kdDebug(14010) << k_funcinfo << "Looking for devices in " << videodevice_dir_path << endl;
const QFileInfoList *list = videodevice_dir.entryInfoList();
@@ -628,15 +628,15 @@ int VideoDevicePool::scanDevices()
if (!list)
{
kdDebug(14010) << k_funcinfo << "Found no suitable devices in " << videodevice_dir_path << endl;
- QDir videodevice_dir;
- const QString videodevice_dir_path=QString::fromLocal8Bit("/dev/");
- const QString videodevice_dir_filter=QString::fromLocal8Bit("video*");
+ TQDir videodevice_dir;
+ const TQString videodevice_dir_path=TQString::fromLocal8Bit("/dev/");
+ const TQString videodevice_dir_filter=TQString::fromLocal8Bit("video*");
VideoDevice videodevice;
videodevice_dir.setPath(videodevice_dir_path);
videodevice_dir.setNameFilter(videodevice_dir_filter);
- videodevice_dir.setFilter( QDir::System | QDir::NoSymLinks | QDir::Readable | QDir::Writable );
- videodevice_dir.setSorting( QDir::Name );
+ videodevice_dir.setFilter( TQDir::System | TQDir::NoSymLinks | TQDir::Readable | TQDir::Writable );
+ videodevice_dir.setSorting( TQDir::Name );
kdDebug(14010) << k_funcinfo << "Looking for devices in " << videodevice_dir_path << endl;
const QFileInfoList *list = videodevice_dir.entryInfoList();
@@ -648,7 +648,7 @@ int VideoDevicePool::scanDevices()
}
QFileInfoListIterator fileiterator ( *list );
- QFileInfo *fileinfo;
+ TQFileInfo *fileinfo;
kdDebug(14010) << k_funcinfo << "scanning devices in " << videodevice_dir_path << "..." << endl;
while ( (fileinfo = fileiterator.current()) != 0 )
@@ -676,7 +676,7 @@ int VideoDevicePool::scanDevices()
}
QFileInfoListIterator fileiterator ( *list );
- QFileInfo *fileinfo;
+ TQFileInfo *fileinfo;
kdDebug(14010) << k_funcinfo << "scanning devices in " << videodevice_dir_path << "..." << endl;
while ( (fileinfo = fileiterator.current()) != 0 )
@@ -760,7 +760,7 @@ void VideoDevicePool::loadConfig()
{
KConfig *config = KGlobal::config();
config->setGroup("Video Device Settings");
- const QString currentdevice = config->readEntry("Current Device", QString::null);
+ const TQString currentdevice = config->readEntry("Current Device", TQString::null);
kdDebug(14010) << k_funcinfo << "Current device: " << currentdevice << endl;
// m_current_device = 0; // Must check this thing because of the fact that multiple loadConfig in other methodas can do bad things. Watch out!
@@ -768,28 +768,28 @@ void VideoDevicePool::loadConfig()
VideoDeviceVector::iterator vditerator;
for( vditerator = m_videodevice.begin(); vditerator != m_videodevice.end(); ++vditerator )
{
- const QString modelindex = QString::fromLocal8Bit ( "Model %1 Device %2") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex);
+ const TQString modelindex = TQString::fromLocal8Bit ( "Model %1 Device %2") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex);
if(modelindex == currentdevice)
{
m_current_device = vditerator - m_videodevice.begin();
// kdDebug(14010) << k_funcinfo << "This place will be used to set " << modelindex << " as the current device ( " << (vditerator - m_videodevice.begin()) << " )." << endl;
}
- const QString name = config->readEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Name") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex)), (*vditerator).m_model);
- const int currentinput = config->readNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Current input") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex)), 0);
+ const TQString name = config->readEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Name") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex)), (*vditerator).m_model);
+ const int currentinput = config->readNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Current input") .arg ((*vditerator).m_name ) .arg ((*vditerator).m_modelindex)), 0);
kdDebug(14010) << k_funcinfo << "Device name: " << name << endl;
kdDebug(14010) << k_funcinfo << "Device current input: " << currentinput << endl;
(*vditerator).selectInput(currentinput);
for (size_t input = 0 ; input < (*vditerator).m_input.size(); input++)
{
- const float brightness = config->readDoubleNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Brightness").arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
- const float contrast = config->readDoubleNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Contrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
- const float saturation = config->readDoubleNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Saturation").arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
- const float whiteness = config->readDoubleNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Whiteness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
- const float hue = config->readDoubleNumEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Hue") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
- const bool autobrightnesscontrast = config->readBoolEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoBrightnessContrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
- const bool autocolorcorrection = config->readBoolEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoColorCorrection") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
- const bool imageasmirror = config->readBoolEntry((QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 mageAsMirror") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
+ const float brightness = config->readDoubleNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Brightness").arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
+ const float contrast = config->readDoubleNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Contrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
+ const float saturation = config->readDoubleNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Saturation").arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
+ const float whiteness = config->readDoubleNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Whiteness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
+ const float hue = config->readDoubleNumEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Hue") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , 0.5 );
+ const bool autobrightnesscontrast = config->readBoolEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoBrightnessContrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
+ const bool autocolorcorrection = config->readBoolEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoColorCorrection") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
+ const bool imageasmirror = config->readBoolEntry((TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 mageAsMirror") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input)) , false );
(*vditerator).setBrightness(brightness);
(*vditerator).setContrast(contrast);
(*vditerator).setSaturation(saturation);
@@ -833,7 +833,7 @@ void VideoDevicePool::saveConfig()
}
*/
// Stores what is the current video device in use
- const QString currentdevice = QString::fromLocal8Bit ( "Model %1 Device %2" ) .arg(m_videodevice[m_current_device].m_model) .arg(m_videodevice[m_current_device].m_modelindex);
+ const TQString currentdevice = TQString::fromLocal8Bit ( "Model %1 Device %2" ) .arg(m_videodevice[m_current_device].m_model) .arg(m_videodevice[m_current_device].m_modelindex);
config->writeEntry( "Current Device", currentdevice);
VideoDeviceVector::iterator vditerator;
@@ -843,8 +843,8 @@ void VideoDevicePool::saveConfig()
kdDebug(14010) << "Model:" << (*vditerator).m_model << ":Index:" << (*vditerator).m_modelindex << ":Current input:" << (*vditerator).currentInput() << endl;
// Stores current input for the given video device
- const QString name = QString::fromLocal8Bit ( "Model %1 Device %2 Name") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex);
- const QString currentinput = QString::fromLocal8Bit ( "Model %1 Device %2 Current input") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex);
+ const TQString name = TQString::fromLocal8Bit ( "Model %1 Device %2 Name") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex);
+ const TQString currentinput = TQString::fromLocal8Bit ( "Model %1 Device %2 Current input") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex);
config->writeEntry( name, (*vditerator).m_name);
config->writeEntry( currentinput, (*vditerator).currentInput());
@@ -859,14 +859,14 @@ void VideoDevicePool::saveConfig()
kdDebug(14010) << "Model:" << (*vditerator).m_model << ":Index:" << (*vditerator).m_modelindex << ":Input:" << input << ":Automatic color correction : " << (*vditerator).m_input[input].getAutoColorCorrection() << endl;
// Stores configuration about each channel
- const QString brightness = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Brightness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString contrast = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Contrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString saturation = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Saturation") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString whiteness = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Whiteness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString hue = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Hue") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString autobrightnesscontrast = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoBrightnessContrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString autocolorcorrection = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoColorCorrection") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
- const QString imageasmirror = QString::fromLocal8Bit ( "Model %1 Device %2 Input %3 ImageAsMirror") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString brightness = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Brightness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString contrast = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Contrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString saturation = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Saturation") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString whiteness = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Whiteness") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString hue = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 Hue") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString autobrightnesscontrast = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoBrightnessContrast") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString autocolorcorrection = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 AutoColorCorrection") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
+ const TQString imageasmirror = TQString::fromLocal8Bit ( "Model %1 Device %2 Input %3 ImageAsMirror") .arg ((*vditerator).m_model ) .arg ((*vditerator).m_modelindex) .arg (input);
config->writeEntry( brightness, (*vditerator).m_input[input].getBrightness());
config->writeEntry( contrast, (*vditerator).m_input[input].getContrast());
config->writeEntry( saturation, (*vditerator).m_input[input].getSaturation());
diff --git a/kopete/libkopete/avdevice/videodevicepool.h b/kopete/libkopete/avdevice/videodevicepool.h
index 1fbdb3e1..75ed9ed4 100644
--- a/kopete/libkopete/avdevice/videodevicepool.h
+++ b/kopete/libkopete/avdevice/videodevicepool.h
@@ -18,16 +18,16 @@
#ifndef KOPETE_AVVIDEODEVICE_H
#define KOPETE_AVVIDEODEVICE_H
-#include
+#include
#include
#include "videoinput.h"
#include "videodevicemodelpool.h"
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include "videodevice.h"
#include "kopete_export.h"
@@ -45,7 +45,7 @@ This class allows kopete to check for the existence, open, configure, test, set
@author Cláudio da Silveira Pinheiro
*/
-typedef QValueVector VideoDeviceVector;
+typedef TQValueVector VideoDeviceVector;
class VideoDevicePoolPrivate;
@@ -68,7 +68,7 @@ public:
int startCapturing();
int stopCapturing();
int readFrame();
- int getImage(QImage *qimage);
+ int getImage(TQImage *qimage);
int selectInput(int newinput);
int setInputParameters();
int scanDevices();
@@ -113,7 +113,7 @@ protected:
unsigned int m_current_device;
struct imagebuffer m_buffer; // only used when no devices were found
- QMutex m_ready;
+ TQMutex m_ready;
private:
VideoDevicePool();
static VideoDevicePool* s_self;
diff --git a/kopete/libkopete/avdevice/videoinput.h b/kopete/libkopete/avdevice/videoinput.h
index 3381663e..9fc109ad 100644
--- a/kopete/libkopete/avdevice/videoinput.h
+++ b/kopete/libkopete/avdevice/videoinput.h
@@ -28,9 +28,9 @@
#define __u64 unsigned long long
#endif // __u64*/
-#include
+#include
#include
-#include
+#include
#include "kopete_export.h"
#include "videocontrol.h"
@@ -46,7 +46,7 @@ class KOPETE_EXPORT VideoInput{
public:
VideoInput();
~VideoInput();
- QString name;
+ TQString name;
int hastuner;
__u64 m_standards;
@@ -69,7 +69,7 @@ public:
bool setImageAsMirror(bool imageasmirror);
protected:
- QValueVector m_control;
+ TQValueVector m_control;
float m_brightness;
float m_contrast;
float m_saturation;
diff --git a/kopete/libkopete/clientiface.h b/kopete/libkopete/clientiface.h
index 02162189..6a7229b7 100644
--- a/kopete/libkopete/clientiface.h
+++ b/kopete/libkopete/clientiface.h
@@ -10,31 +10,31 @@ class ClientIface : virtual public DCOPObject
K_DCOP
k_dcop:
/** Get the set of networks that the daemon is aware of. Mostly for debug */
- virtual QStringList networks() = 0;
+ virtual TQStringList networks() = 0;
/**
* Get the status of the connection to the given host.
* @param host
* @return a NetworkStatus::EnumStatus representing the state of the connection to the given host
*/
- virtual int status( const QString & host = QString::null ) = 0;
+ virtual int status( const TQString & host = TQString::null ) = 0;
/**
* Request a connection to the named host, registering the application's usage of this connection
* @param host The hostname the client wants to connect to.
* @param userInitiated Indicates whether the connection is a direct result of a user action or is a background task. Used by the daemon to decide whether to create an on-demand connection.
* @return An NetworkStatus::EnumRequestResult indicating whether the request was accepted
*/
- virtual int request( const QString & host, bool userInitiated ) = 0;
+ virtual int request( const TQString & host, bool userInitiated ) = 0;
/**
* Indicate that a previously registered connection to the given host is no longer needed by this client
* @param host The hostname being relinquished.
*/
- virtual void relinquish( const QString & host ) = 0;
+ virtual void relinquish( const TQString & host ) = 0;
/**
* Indicate that a communication failure has occured for a given host
* @param host The hostname for which the failure occurred.
* @return True indicates the caller should try again to lookup the host, as the daemon has another IP address available.
*/
- virtual bool reportFailure( const QString & host ) = 0;
+ virtual bool reportFailure( const TQString & host ) = 0;
/**
* Utility method to check the daemon's status
*/
@@ -44,13 +44,13 @@ k_dcop_signals:
* @param host The host which the application has indicated it is using
* @param status The new status of the network used to reach host.
*/
- void statusChange( QString host, int status );
+ void statusChange( TQString host, int status );
/**
* The network would like to shut down - any clients using this host are to finish using it immediately and call
* relinquish() when done.
* @param host The host, registered as in use by applications, which is about to be disconnected.
*/
- void shutdownRequested( QString host );
+ void shutdownRequested( TQString host );
};
#endif
diff --git a/kopete/libkopete/compat/kpixmapregionselectordialog.cpp b/kopete/libkopete/compat/kpixmapregionselectordialog.cpp
index ee9d185e..c394af0f 100644
--- a/kopete/libkopete/compat/kpixmapregionselectordialog.cpp
+++ b/kopete/libkopete/compat/kpixmapregionselectordialog.cpp
@@ -19,16 +19,16 @@
#include "kpixmapregionselectordialog.h"
#include
-#include
-#include
+#include
+#include
#include
#include
-KPixmapRegionSelectorDialog::KPixmapRegionSelectorDialog(QWidget *parent,
+KPixmapRegionSelectorDialog::KPixmapRegionSelectorDialog(TQWidget *parent,
const char *name, bool modal ) : KDialogBase(parent, name, modal, i18n("Select Region of Image"), Help|Ok|Cancel, Ok, true )
{
- QVBox *vbox=new QVBox(this);
- new QLabel(i18n("Please click and drag on the image to select the region of interest:"), vbox);
+ TQVBox *vbox=new TQVBox(this);
+ new TQLabel(i18n("Please click and drag on the image to select the region of interest:"), vbox);
m_pixmapSelectorWidget= new KPixmapRegionSelectorWidget(vbox);
vbox->setSpacing( KDialog::spacingHint() );
@@ -40,86 +40,86 @@ KPixmapRegionSelectorDialog::~KPixmapRegionSelectorDialog()
{
}
-QRect KPixmapRegionSelectorDialog::getSelectedRegion(const QPixmap &pixmap, QWidget *parent )
+TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, TQWidget *parent )
{
KPixmapRegionSelectorDialog dialog(parent);
dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap);
- QDesktopWidget desktopWidget;
- QRect screen=desktopWidget.availableGeometry();
+ TQDesktopWidget desktopWidget;
+ TQRect screen=desktopWidget.availableGeometry();
dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize(
(int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5));
int result = dialog.exec();
- QRect rect;
+ TQRect rect;
- if ( result == QDialog::Accepted )
+ if ( result == TQDialog::Accepted )
rect = dialog.pixmapRegionSelectorWidget()->unzoomedSelectedRegion();
return rect;
}
-QRect KPixmapRegionSelectorDialog::getSelectedRegion(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent )
+TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
{
KPixmapRegionSelectorDialog dialog(parent);
dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap);
dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
- QDesktopWidget desktopWidget;
- QRect screen=desktopWidget.availableGeometry();
+ TQDesktopWidget desktopWidget;
+ TQRect screen=desktopWidget.availableGeometry();
dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize(
(int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5));
int result = dialog.exec();
- QRect rect;
+ TQRect rect;
- if ( result == QDialog::Accepted )
+ if ( result == TQDialog::Accepted )
rect = dialog.pixmapRegionSelectorWidget()->unzoomedSelectedRegion();
return rect;
}
-QImage KPixmapRegionSelectorDialog::getSelectedImage(const QPixmap &pixmap, QWidget *parent )
+TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, TQWidget *parent )
{
KPixmapRegionSelectorDialog dialog(parent);
dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap);
- QDesktopWidget desktopWidget;
- QRect screen=desktopWidget.availableGeometry();
+ TQDesktopWidget desktopWidget;
+ TQRect screen=desktopWidget.availableGeometry();
dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize(
(int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5));
int result = dialog.exec();
- QImage image;
+ TQImage image;
- if ( result == QDialog::Accepted )
+ if ( result == TQDialog::Accepted )
image = dialog.pixmapRegionSelectorWidget()->selectedImage();
return image;
}
-QImage KPixmapRegionSelectorDialog::getSelectedImage(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent )
+TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
{
KPixmapRegionSelectorDialog dialog(parent);
dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap);
dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
- QDesktopWidget desktopWidget;
- QRect screen=desktopWidget.availableGeometry();
+ TQDesktopWidget desktopWidget;
+ TQRect screen=desktopWidget.availableGeometry();
dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize(
(int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5));
int result = dialog.exec();
- QImage image;
+ TQImage image;
- if ( result == QDialog::Accepted )
+ if ( result == TQDialog::Accepted )
image = dialog.pixmapRegionSelectorWidget()->selectedImage();
return image;
diff --git a/kopete/libkopete/compat/kpixmapregionselectordialog.h b/kopete/libkopete/compat/kpixmapregionselectordialog.h
index 1c15067e..ffc5551e 100644
--- a/kopete/libkopete/compat/kpixmapregionselectordialog.h
+++ b/kopete/libkopete/compat/kpixmapregionselectordialog.h
@@ -20,7 +20,7 @@
#ifndef __KPIXMAPREGIONSELECTORDIALOG_H__
#define __KPIXMAPREGIONSELECTORDIALOG_H__
-#include
+#include
#include
#include
@@ -47,7 +47,7 @@ public:
* later the setPixmap method of the KPixmapRegionSelectorWidget widget of
* the new object.
*/
- KPixmapRegionSelectorDialog(QWidget *parent=0L, const char *name=0L,
+ KPixmapRegionSelectorDialog(TQWidget *parent=0L, const char *name=0L,
bool modal = false );
/**
* The destructor of the dialog
@@ -68,7 +68,7 @@ public:
* @returns the selected rectangle, or an invalid rectangle if the user
* pressed the Cancel button.
*/
- static QRect getSelectedRegion(const QPixmap &pixmap, QWidget *parent = 0L );
+ static TQRect getSelectedRegion(const TQPixmap &pixmap, TQWidget *parent = 0L );
/**
* Creates a modal dialog, lets the user to select a region of the @p pixmap
@@ -78,7 +78,7 @@ public:
* @returns the selected rectangle, or an invalid rectangle if the user
* pressed the Cancel button.
*/
- static QRect getSelectedRegion(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
+ static TQRect getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent = 0L );
/**
* Creates a modal dialog, lets the user to select a region of the @p pixmap
@@ -87,7 +87,7 @@ public:
* @returns the selected image, or an invalid image if the user
* pressed the Cancel button.
*/
- static QImage getSelectedImage(const QPixmap &pixmap, QWidget *parent = 0L );
+ static TQImage getSelectedImage(const TQPixmap &pixmap, TQWidget *parent = 0L );
/**
* Creates a modal dialog, lets the user to select a region of the @p pixmap
@@ -97,7 +97,7 @@ public:
* @returns the selected image, or an invalid image if the user
* pressed the Cancel button.
*/
- static QImage getSelectedImage(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
+ static TQImage getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent = 0L );
protected:
KPixmapRegionSelectorWidget *m_pixmapSelectorWidget;
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
index da2be5f9..ada867bb 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
@@ -24,29 +24,29 @@
*/
#include "kpixmapregionselectorwidget.h"
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include
#include
#include
#include
#include
-#include
-#include
+#include
+#include
-KPixmapRegionSelectorWidget::KPixmapRegionSelectorWidget( QWidget *parent,
- const char *name) : QWidget( parent, name)
+KPixmapRegionSelectorWidget::KPixmapRegionSelectorWidget( TQWidget *parent,
+ const char *name) : TQWidget( parent, name)
{
- QHBoxLayout * hboxLayout=new QHBoxLayout( this );
+ TQHBoxLayout * hboxLayout=new TQHBoxLayout( this );
hboxLayout->addStretch();
- QVBoxLayout * vboxLayout=new QVBoxLayout( hboxLayout );
+ TQVBoxLayout * vboxLayout=new TQVBoxLayout( hboxLayout );
vboxLayout->addStretch();
- m_label = new QLabel(this, "pixmapHolder");
+ m_label = new TQLabel(this, "pixmapHolder");
m_label->setBackgroundMode( Qt::NoBackground );
m_label->installEventFilter( this );
@@ -64,7 +64,7 @@ KPixmapRegionSelectorWidget::~KPixmapRegionSelectorWidget()
{
}
-void KPixmapRegionSelectorWidget::setPixmap( const QPixmap &pixmap )
+void KPixmapRegionSelectorWidget::setPixmap( const TQPixmap &pixmap )
{
Q_ASSERT(!pixmap.isNull()); //This class isn't designed to deal with null pixmaps.
m_originalPixmap = pixmap;
@@ -79,12 +79,12 @@ void KPixmapRegionSelectorWidget::resetSelection()
updatePixmap();
}
-QRect KPixmapRegionSelectorWidget::selectedRegion() const
+TQRect KPixmapRegionSelectorWidget::selectedRegion() const
{
return m_selectedRegion;
}
-void KPixmapRegionSelectorWidget::setSelectedRegion(const QRect &rect)
+void KPixmapRegionSelectorWidget::setSelectedRegion(const TQRect &rect)
{
if (!rect.isValid()) resetSelection();
else
@@ -92,7 +92,7 @@ void KPixmapRegionSelectorWidget::setSelectedRegion(const QRect &rect)
m_selectedRegion=rect;
updatePixmap();
- QRect r=unzoomedSelectedRegion();
+ TQRect r=unzoomedSelectedRegion();
}
}
@@ -102,7 +102,7 @@ void KPixmapRegionSelectorWidget::updatePixmap()
if (m_selectedRegion.width()>m_originalPixmap.width()) m_selectedRegion.setWidth( m_originalPixmap.width() );
if (m_selectedRegion.height()>m_originalPixmap.height()) m_selectedRegion.setHeight( m_originalPixmap.height() );
- QPainter painter;
+ TQPainter painter;
if (m_linedPixmap.isNull())
{
m_linedPixmap = m_originalPixmap;
@@ -110,21 +110,21 @@ void KPixmapRegionSelectorWidget::updatePixmap()
painter.begin(&m_linedPixmap);
painter.setRasterOp( Qt::XorROP );
painter.fillRect(0,0,m_linedPixmap.width(), m_linedPixmap.height(),
- QBrush( QColor(255,255,255), Qt::BDiagPattern) );
+ TQBrush( TQColor(255,255,255), Qt::BDiagPattern) );
painter.end();
- QImage image=m_linedPixmap.convertToImage();
- image=KImageEffect::fade(image, (float)0.4, QColor(0,0,0));
+ TQImage image=m_linedPixmap.convertToImage();
+ image=KImageEffect::fade(image, (float)0.4, TQColor(0,0,0));
m_linedPixmap.convertFromImage(image);
}
- QPixmap pixmap = m_linedPixmap;
+ TQPixmap pixmap = m_linedPixmap;
painter.begin(&pixmap);
painter.drawPixmap( m_selectedRegion.topLeft(),
m_originalPixmap, m_selectedRegion );
- painter.setPen( QColor(255,255,255) );
+ painter.setPen( TQColor(255,255,255) );
painter.setRasterOp( Qt::XorROP );
painter.drawRect( m_selectedRegion );
@@ -141,12 +141,12 @@ KPopupMenu *KPixmapRegionSelectorWidget::createPopupMenu()
popup->insertTitle(i18n("Image Operations"));
KAction *action = new KAction(i18n("&Rotate Clockwise"), "rotate_cw",
- 0, this, SLOT(rotateClockwise()),
+ 0, this, TQT_SLOT(rotateClockwise()),
popup, "rotateclockwise");
action->plug(popup);
action = new KAction(i18n("Rotate &Counterclockwise"), "rotate_ccw",
- 0, this, SLOT(rotateCounterclockwise()),
+ 0, this, TQT_SLOT(rotateCounterclockwise()),
popup, "rotatecounterclockwise");
action->plug(popup);
@@ -161,7 +161,7 @@ void KPixmapRegionSelectorWidget::rotate(KImageEffect::RotateDirection direction
{
int w=m_originalPixmap.width();
int h=m_originalPixmap.height();
- QImage img=m_unzoomedPixmap.convertToImage();
+ TQImage img=m_unzoomedPixmap.convertToImage();
img= KImageEffect::rotate(img, direction);
m_unzoomedPixmap.convertFromImage(img);
@@ -169,7 +169,7 @@ void KPixmapRegionSelectorWidget::rotate(KImageEffect::RotateDirection direction
img= KImageEffect::rotate(img, direction);
m_originalPixmap.convertFromImage(img);
- m_linedPixmap=QPixmap();
+ m_linedPixmap=TQPixmap();
if (m_forcedAspectRatio>0 && m_forcedAspectRatio!=1)
resetSelection();
@@ -206,12 +206,12 @@ void KPixmapRegionSelectorWidget::rotateCounterclockwise()
rotate(KImageEffect::Rotate270);
}
-bool KPixmapRegionSelectorWidget::eventFilter(QObject *obj, QEvent *ev)
+bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
{
- if ( ev->type() == QEvent::MouseButtonPress )
+ if ( ev->type() == TQEvent::MouseButtonPress )
{
- QMouseEvent *mev= (QMouseEvent *)(ev);
- //kdDebug() << QString("click at %1,%2").arg( mev->x() ).arg( mev->y() ) << endl;
+ TQMouseEvent *mev= (TQMouseEvent *)(ev);
+ //kdDebug() << TQString("click at %1,%2").arg( mev->x() ).arg( mev->y() ) << endl;
if ( mev->button() == RightButton )
{
@@ -221,7 +221,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(QObject *obj, QEvent *ev)
return TRUE;
};
- QCursor cursor;
+ TQCursor cursor;
if ( m_selectedRegion.contains( mev->pos() )
&& m_selectedRegion!=m_originalPixmap.rect() )
@@ -234,7 +234,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(QObject *obj, QEvent *ev)
m_state=Resizing;
cursor.setShape( Qt::CrossCursor );
}
- QApplication::setOverrideCursor(cursor);
+ TQApplication::setOverrideCursor(cursor);
m_tempFirstClick=mev->pos();
@@ -242,11 +242,11 @@ bool KPixmapRegionSelectorWidget::eventFilter(QObject *obj, QEvent *ev)
return TRUE;
}
- if ( ev->type() == QEvent::MouseMove )
+ if ( ev->type() == TQEvent::MouseMove )
{
- QMouseEvent *mev= (QMouseEvent *)(ev);
+ TQMouseEvent *mev= (TQMouseEvent *)(ev);
- //kdDebug() << QString("move to %1,%2").arg( mev->x() ).arg( mev->y() ) << endl;
+ //kdDebug() << TQString("move to %1,%2").arg( mev->x() ).arg( mev->y() ) << endl;
if ( m_state == Resizing )
{
@@ -300,26 +300,26 @@ bool KPixmapRegionSelectorWidget::eventFilter(QObject *obj, QEvent *ev)
return TRUE;
}
- if ( ev->type() == QEvent::MouseButtonRelease )
+ if ( ev->type() == TQEvent::MouseButtonRelease )
{
- QMouseEvent *mev= (QMouseEvent *)(ev);
+ TQMouseEvent *mev= (TQMouseEvent *)(ev);
if ( m_state == Resizing && mev->pos() == m_tempFirstClick)
resetSelection();
m_state=None;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return TRUE;
}
- QWidget::eventFilter(obj, ev);
+ TQWidget::eventFilter(obj, ev);
return FALSE;
}
-QRect KPixmapRegionSelectorWidget::calcSelectionRectangle( const QPoint & startPoint, const QPoint & _endPoint )
+TQRect KPixmapRegionSelectorWidget::calcSelectionRectangle( const TQPoint & startPoint, const TQPoint & _endPoint )
{
- QPoint endPoint = _endPoint;
+ TQPoint endPoint = _endPoint;
if ( endPoint.x() < 0 ) endPoint.setX(0);
else if ( endPoint.x() > m_originalPixmap.width() ) endPoint.setX(m_originalPixmap.width());
if ( endPoint.y() < 0 ) endPoint.setY(0);
@@ -382,20 +382,20 @@ QRect KPixmapRegionSelectorWidget::calcSelectionRectangle( const QPoint & startP
x=startPoint.x()-w;
}
- return QRect(x,y,w,h);
+ return TQRect(x,y,w,h);
}
-QRect KPixmapRegionSelectorWidget::unzoomedSelectedRegion() const
+TQRect KPixmapRegionSelectorWidget::unzoomedSelectedRegion() const
{
- return QRect((int)(m_selectedRegion.x()/m_zoomFactor),
+ return TQRect((int)(m_selectedRegion.x()/m_zoomFactor),
(int)(m_selectedRegion.y()/m_zoomFactor),
(int)(m_selectedRegion.width()/m_zoomFactor),
(int)(m_selectedRegion.height()/m_zoomFactor));
}
-QImage KPixmapRegionSelectorWidget::selectedImage() const
+TQImage KPixmapRegionSelectorWidget::selectedImage() const
{
- QImage origImage=m_unzoomedPixmap.convertToImage();
+ TQImage origImage=m_unzoomedPixmap.convertToImage();
return origImage.copy(unzoomedSelectedRegion());
}
@@ -415,25 +415,25 @@ void KPixmapRegionSelectorWidget::setMaximumWidgetSize(int width, int height)
m_maxHeight=height;
m_originalPixmap=m_unzoomedPixmap;
- if (m_selectedRegion == m_originalPixmap.rect()) m_selectedRegion=QRect();
+ if (m_selectedRegion == m_originalPixmap.rect()) m_selectedRegion=TQRect();
-// kdDebug() << QString(" original Pixmap :") << m_originalPixmap.rect() << endl;
-// kdDebug() << QString(" unzoomed Pixmap : %1 x %2 ").arg(m_unzoomedPixmap.width()).arg(m_unzoomedPixmap.height()) << endl;
+// kdDebug() << TQString(" original Pixmap :") << m_originalPixmap.rect() << endl;
+// kdDebug() << TQString(" unzoomed Pixmap : %1 x %2 ").arg(m_unzoomedPixmap.width()).arg(m_unzoomedPixmap.height()) << endl;
if ( !m_originalPixmap.isNull() &&
( m_originalPixmap.width() > m_maxWidth ||
m_originalPixmap.height() > m_maxHeight ) )
{
/* We have to resize the pixmap to get it complete on the screen */
- QImage image=m_originalPixmap.convertToImage();
- m_originalPixmap.convertFromImage( image.smoothScale( width, height, QImage::ScaleMin ) );
+ TQImage image=m_originalPixmap.convertToImage();
+ m_originalPixmap.convertFromImage( image.smoothScale( width, height, TQImage::ScaleMin ) );
double oldZoomFactor = m_zoomFactor;
m_zoomFactor=m_originalPixmap.width()/(double)m_unzoomedPixmap.width();
if (m_selectedRegion.isValid())
{
m_selectedRegion=
- QRect((int)(m_selectedRegion.x()*m_zoomFactor/oldZoomFactor),
+ TQRect((int)(m_selectedRegion.x()*m_zoomFactor/oldZoomFactor),
(int)(m_selectedRegion.y()*m_zoomFactor/oldZoomFactor),
(int)(m_selectedRegion.width()*m_zoomFactor/oldZoomFactor),
(int)(m_selectedRegion.height()*m_zoomFactor/oldZoomFactor) );
@@ -442,7 +442,7 @@ void KPixmapRegionSelectorWidget::setMaximumWidgetSize(int width, int height)
if (!m_selectedRegion.isValid()) m_selectedRegion = m_originalPixmap.rect();
- m_linedPixmap=QPixmap();
+ m_linedPixmap=TQPixmap();
updatePixmap();
resize(m_label->width(), m_label->height());
}
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.h b/kopete/libkopete/compat/kpixmapregionselectorwidget.h
index a4a9cfcf..6b0a319b 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.h
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.h
@@ -19,10 +19,10 @@
#ifndef __KPIXMAPREGIONSELECTORWIDGET_H__
#define __KPIXMAPREGIONSELECTORWIDGET_H__
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
class KPopupMenu;
@@ -48,7 +48,7 @@ public:
/**
* Constructor for a KPixmapRegionSelectorWidget.
*/
- KPixmapRegionSelectorWidget( QWidget *parent = 0L, const char *name=0L);
+ KPixmapRegionSelectorWidget( TQWidget *parent = 0L, const char *name=0L);
/**
* Destructor for a KPixmapRegionSelectorWidget
@@ -60,28 +60,28 @@ public:
* @param pixmap The pixmap. Must be non-null.
*
*/
- void setPixmap( const QPixmap &pixmap );
+ void setPixmap( const TQPixmap &pixmap );
/**
* @return the original whole pixmap that we're using in this widget as the
* pixmap the user is selecting a region from.
*/
- QPixmap pixmap() const { return m_unzoomedPixmap; };
+ TQPixmap pixmap() const { return m_unzoomedPixmap; };
/**
* Sets the selected region to be @p rect (in zoomed pixmap coordinates)
*/
- void setSelectedRegion(const QRect &rect);
+ void setSelectedRegion(const TQRect &rect);
/**
* Returns the selected region ( in zoomed pixmap coordinates )
*/
- QRect selectedRegion() const;
+ TQRect selectedRegion() const;
/**
* Returns the selected region ( in unzoomed, original pixmap coordinates )
*/
- QRect unzoomedSelectedRegion() const;
+ TQRect unzoomedSelectedRegion() const;
/**
* Resets the selection to use the whole image
@@ -89,10 +89,10 @@ public:
void resetSelection();
/**
- * @returns a QImage object with just the region the user selected from the
+ * @returns a TQImage object with just the region the user selected from the
* image
*/
- QImage selectedImage() const;
+ TQImage selectedImage() const;
/**
* Sets the aspect ration that the selected subimage should have. The way to
@@ -140,7 +140,7 @@ protected:
virtual KPopupMenu *createPopupMenu();
private:
- bool eventFilter(QObject *obj, QEvent *ev);
+ bool eventFilter(TQObject *obj, TQEvent *ev);
/**
* Recalculates the pixmap that is shown based on the current selected area,
@@ -148,18 +148,18 @@ private:
*/
void updatePixmap();
- QRect calcSelectionRectangle( const QPoint &startPoint, const QPoint & endPoint );
+ TQRect calcSelectionRectangle( const TQPoint &startPoint, const TQPoint & endPoint );
enum CursorState { None=0, Resizing, Moving };
CursorState m_state;
- QPixmap m_unzoomedPixmap;
- QPixmap m_originalPixmap;
- QPixmap m_linedPixmap;
- QRect m_selectedRegion;
- QLabel *m_label;
+ TQPixmap m_unzoomedPixmap;
+ TQPixmap m_originalPixmap;
+ TQPixmap m_linedPixmap;
+ TQRect m_selectedRegion;
+ TQLabel *m_label;
- QPoint m_tempFirstClick;
+ TQPoint m_tempFirstClick;
double m_forcedAspectRatio;
int m_maxWidth, m_maxHeight;
diff --git a/kopete/libkopete/connectionmanager.cpp b/kopete/libkopete/connectionmanager.cpp
index b2dd7825..dcfa0ee1 100644
--- a/kopete/libkopete/connectionmanager.cpp
+++ b/kopete/libkopete/connectionmanager.cpp
@@ -20,13 +20,13 @@ class ConnectionManagerPrivate
};
// Connection manager itself
-ConnectionManager::ConnectionManager( QObject * parent, const char * name ) : DCOPObject( "ConnectionManager" ),QObject( parent, name )
+ConnectionManager::ConnectionManager( TQObject * parent, const char * name ) : DCOPObject( "ConnectionManager" ),TQObject( parent, name )
{
d = new ConnectionManagerPrivate;
d->m_stub = new ClientIface_stub( kapp->dcopClient(), "kded", "networkstatus" );
- connectDCOPSignal( "kded", "networkstatus", "statusChange(QString,int)", "slotStatusChanged(QString,int)", false );
+ connectDCOPSignal( "kded", "networkstatus", "statusChange(TQString,int)", "slotStatusChanged(TQString,int)", false );
d->m_userInitiatedOnly = false;
initialise();
}
@@ -50,7 +50,7 @@ void ConnectionManager::initialise()
void ConnectionManager::updateStatus()
{
- NetworkStatus::EnumStatus daemonStatus = (NetworkStatus::EnumStatus)d->m_stub->status( QString::null );
+ NetworkStatus::EnumStatus daemonStatus = (NetworkStatus::EnumStatus)d->m_stub->status( TQString::null );
kdDebug() << k_funcinfo << endl;
switch ( daemonStatus )
{
@@ -87,7 +87,7 @@ ConnectionManager::~ConnectionManager()
delete d;
}
-NetworkStatus::EnumStatus ConnectionManager::status( const QString & host )
+NetworkStatus::EnumStatus ConnectionManager::status( const TQString & host )
{
// need also to check that the daemon hasn't died
updateStatus();
@@ -100,7 +100,7 @@ NetworkStatus::EnumStatus ConnectionManager::status( const QString & host )
return NetworkStatus::NoNetworks;
}
-NetworkStatus::EnumRequestResult ConnectionManager::requestConnection( QWidget * mainWidget, const QString & host, bool userInitiated )
+NetworkStatus::EnumRequestResult ConnectionManager::requestConnection( TQWidget * mainWidget, const TQString & host, bool userInitiated )
{
kdDebug() << k_funcinfo << endl;
NetworkStatus::EnumRequestResult result;
@@ -123,12 +123,12 @@ NetworkStatus::EnumRequestResult ConnectionManager::requestConnection( QWidget *
return result;
}
-void ConnectionManager::relinquishConnection( const QString & host )
+void ConnectionManager::relinquishConnection( const TQString & host )
{
d->m_stub->relinquish( host );
}
-void ConnectionManager::slotStatusChanged( QString host, int status )
+void ConnectionManager::slotStatusChanged( TQString host, int status )
{
kdDebug() << k_funcinfo << endl;
updateStatus();
@@ -139,7 +139,7 @@ void ConnectionManager::slotStatusChanged( QString host, int status )
emit statusChanged( host, (NetworkStatus::EnumStatus)status );
}
-bool ConnectionManager::askToConnect( QWidget * mainWidget )
+bool ConnectionManager::askToConnect( TQWidget * mainWidget )
{
i18n( "A network connection was disconnected. The application is now in offline mode. Do you want the application to resume network operations when the network is available again?" );
i18n( "This application is currently in offline mode. Do you want to connect?" );
@@ -147,7 +147,7 @@ bool ConnectionManager::askToConnect( QWidget * mainWidget )
i18n("This application is currently in offline mode. Do you want to connect in order to carry out this operation?"),
i18n("Leave Offline Mode?"),
i18n("Connect"), i18n("Stay Offline"),
- QString::fromLatin1("OfflineModeAlwaysGoOnline") ) == KMessageBox::Yes );
+ TQString::fromLatin1("OfflineModeAlwaysGoOnline") ) == KMessageBox::Yes );
}
#include "connectionmanager.moc"
diff --git a/kopete/libkopete/connectionmanager.h b/kopete/libkopete/connectionmanager.h
index b78df8d4..63217183 100644
--- a/kopete/libkopete/connectionmanager.h
+++ b/kopete/libkopete/connectionmanager.h
@@ -23,7 +23,7 @@
class ConnectionManagerPrivate;
-class KOPETE_EXPORT ConnectionManager : public QObject, virtual public DCOPObject
+class KOPETE_EXPORT ConnectionManager : public TQObject, virtual public DCOPObject
{
Q_OBJECT
K_DCOP
@@ -31,25 +31,25 @@ class KOPETE_EXPORT ConnectionManager : public QObject, virtual public DCOPObjec
static ConnectionManager* self();
enum State { Inactive, Online, Offline, Pending };
virtual ~ConnectionManager();
- NetworkStatus::EnumStatus status( const QString & host );
+ NetworkStatus::EnumStatus status( const TQString & host );
// check if a hostname is available. Ask user if offline. Request host
- NetworkStatus::EnumRequestResult requestConnection( QWidget* mainWidget, const QString & host, bool userInitiated );
+ NetworkStatus::EnumRequestResult requestConnection( TQWidget* mainWidget, const TQString & host, bool userInitiated );
// method to relinquish a connection
- void relinquishConnection( const QString & host );
+ void relinquishConnection( const TQString & host );
signals:
// signal that the network for a hostname is up/down
- void statusChanged( const QString & host, NetworkStatus::EnumStatus status );
+ void statusChanged( const TQString & host, NetworkStatus::EnumStatus status );
protected:
// sets up internal state
void initialise();
// reread the desktop status from the daemon and update internal state
void updateStatus();
// ask if the user would like to reconnect
- bool askToConnect( QWidget * mainWidget );
+ bool askToConnect( TQWidget * mainWidget );
k_dcop:
- void slotStatusChanged( QString host, int status );
+ void slotStatusChanged( TQString host, int status );
private:
- ConnectionManager( QObject *parent, const char * name );
+ ConnectionManager( TQObject *parent, const char * name );
ConnectionManagerPrivate *d;
static ConnectionManager * s_self;
};
diff --git a/kopete/libkopete/kabcpersistence.cpp b/kopete/libkopete/kabcpersistence.cpp
index 527a99a4..93d55b35 100644
--- a/kopete/libkopete/kabcpersistence.cpp
+++ b/kopete/libkopete/kabcpersistence.cpp
@@ -15,8 +15,8 @@
*************************************************************************
*/
-#include
-#include
+#include
+#include
#include
#include
@@ -47,19 +47,19 @@ namespace Kopete
/**
* utility function to merge two QStrings containing individual elements separated by 0xE000
*/
-static QString unionContents( QString arg1, QString arg2 )
+static TQString unionContents( TQString arg1, TQString arg2 )
{
- QChar separator( 0xE000 );
- QStringList outList = QStringList::split( separator, arg1 );
- QStringList arg2List = QStringList::split( separator, arg2 );
- for ( QStringList::iterator it = arg2List.begin(); it != arg2List.end(); ++it )
+ TQChar separator( 0xE000 );
+ TQStringList outList = TQStringList::split( separator, arg1 );
+ TQStringList arg2List = TQStringList::split( separator, arg2 );
+ for ( TQStringList::iterator it = arg2List.begin(); it != arg2List.end(); ++it )
if ( !outList.contains( *it ) )
outList.append( *it );
- QString out = outList.join( separator );
+ TQString out = outList.join( separator );
return out;
}
-KABCPersistence::KABCPersistence( QObject * parent, const char * name ) : QObject( parent, name )
+KABCPersistence::KABCPersistence( TQObject * parent, const char * name ) : TQObject( parent, name )
{
s_pendingResources.setAutoDelete( false );
}
@@ -72,7 +72,7 @@ KABCPersistence *KABCPersistence::s_self = 0L;
bool KABCPersistence::s_addrBookWritePending = false;
-QPtrList KABCPersistence::s_pendingResources;
+TQPtrList KABCPersistence::s_pendingResources;
KABC::AddressBook* KABCPersistence::s_addressBook = 0;
@@ -112,29 +112,29 @@ void KABCPersistence::write( MetaContact * mc )
else
{
// collate the instant messaging data to be inserted into the address book
- QMap addressMap;
- QPtrList contacts = mc->contacts();
- QPtrListIterator cIt( contacts );
+ TQMap addressMap;
+ TQPtrList contacts = mc->contacts();
+ TQPtrListIterator cIt( contacts );
while ( Contact * c = cIt.current() )
{
- QStringList addresses = addressMap[ c->protocol()->addressBookIndexField() ];
+ TQStringList addresses = addressMap[ c->protocol()->addressBookIndexField() ];
addresses.append( c->contactId() );
addressMap.insert( c->protocol()->addressBookIndexField(), addresses );
++cIt;
}
// insert a custom field for each protocol
- QMap::ConstIterator it = addressMap.begin();
+ TQMap::ConstIterator it = addressMap.begin();
for ( ; it != addressMap.end(); ++it )
{
// read existing data for this key
- QString currentCustomForProtocol = theAddressee.custom( it.key(), QString::fromLatin1( "All" ) );
+ TQString currentCustomForProtocol = theAddressee.custom( it.key(), TQString::fromLatin1( "All" ) );
// merge without duplicating
- QString toWrite = unionContents( currentCustomForProtocol, it.data().join( QChar( 0xE000 ) ) );
+ TQString toWrite = unionContents( currentCustomForProtocol, it.data().join( TQChar( 0xE000 ) ) );
// Note if nothing ends up in the KABC data, this is because insertCustom does nothing if any param is empty.
kdDebug( 14010 ) << k_funcinfo << "Writing: " << it.key() << ", " << "All" << ", " << toWrite << endl;
- theAddressee.insertCustom( it.key(), QString::fromLatin1( "All" ), toWrite );
- QString check = theAddressee.custom( it.key(), QString::fromLatin1( "All" ) );
+ theAddressee.insertCustom( it.key(), TQString::fromLatin1( "All" ), toWrite );
+ TQString check = theAddressee.custom( it.key(), TQString::fromLatin1( "All" ) );
}
ab->insertAddressee( theAddressee );
//kdDebug( 14010 ) << k_funcinfo << "dumping addressbook before write " << endl;
@@ -150,16 +150,16 @@ void KABCPersistence::write( MetaContact * mc )
kdDebug( 14010 ) << k_funcinfo << "...FOUND ONE!" << endl;
// Store address book fields
- QMap >::ConstIterator appIt = d->addressBook.begin();
+ TQMap >::ConstIterator appIt = d->addressBook.begin();
for( ; appIt != d->addressBook.end(); ++appIt )
{
- QMap::ConstIterator addrIt = appIt.data().begin();
+ TQMap::ConstIterator addrIt = appIt.data().begin();
for( ; addrIt != appIt.data().end(); ++addrIt )
{
// read existing data for this key
- QString currentCustom = theAddressee.custom( appIt.key(), addrIt.key() );
+ TQString currentCustom = theAddressee.custom( appIt.key(), addrIt.key() );
// merge without duplicating
- QString toWrite = unionContents( currentCustom, addrIt.data() );
+ TQString toWrite = unionContents( currentCustom, addrIt.data() );
// write the result
// Note if nothing ends up in the KABC data, this is because insertCustom does nothing if any param is empty.
kdDebug( 14010 ) << k_funcinfo << "Writing: " << appIt.key() << ", " << addrIt.key() << ", " << toWrite << endl;
@@ -178,7 +178,7 @@ void KABCPersistence::writeAddressBook( const KABC::Resource * res)
if ( !s_addrBookWritePending )
{
s_addrBookWritePending = true;
- QTimer::singleShot( 2000, this, SLOT( slotWriteAddressBook() ) );
+ TQTimer::singleShot( 2000, this, TQT_SLOT( slotWriteAddressBook() ) );
}
}
@@ -186,7 +186,7 @@ void KABCPersistence::slotWriteAddressBook()
{
//kdDebug( 14010 ) << k_funcinfo << endl;
KABC::AddressBook* ab = addressBook();
- QPtrListIterator it( s_pendingResources );
+ TQPtrListIterator it( s_pendingResources );
for ( ; it.current(); ++it )
{
//kdDebug( 14010 ) << "Writing resource " << it.current()->resourceName() << endl;
@@ -229,16 +229,16 @@ void KABCPersistence::removeKABC( MetaContact *)
{
// remove the link
//kdDebug( 14010 ) << k_funcinfo << "...not found." << endl;
- d->metaContactId=QString::null;
+ d->metaContactId=TQString::null;
}
else
{
//kdDebug( 14010 ) << k_funcinfo << "...FOUND ONE!" << endl;
// Remove address book fields
- QMap >::ConstIterator appIt = d->addressBook.begin();
+ TQMap >::ConstIterator appIt = d->addressBook.begin();
for( ; appIt != d->addressBook.end(); ++appIt )
{
- QMap::ConstIterator addrIt = appIt.data().begin();
+ TQMap::ConstIterator addrIt = appIt.data().begin();
for( ; addrIt != appIt.data().end(); ++addrIt )
{
// FIXME: This assumes Kopete is the only app writing these fields
@@ -265,29 +265,29 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc )
if ( !addr.isEmpty() ) // if we are associated with KABC
{
// load the set of addresses from KABC
- QStringList customs = addr.customs();
+ TQStringList customs = addr.customs();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = customs.begin(); it != customs.end(); ++it )
{
- QString app, name, value;
+ TQString app, name, value;
splitField( *it, app, name, value );
kdDebug( 14010 ) << "app=" << app << " name=" << name << " value=" << value << endl;
- if ( app.startsWith( QString::fromLatin1( "messaging/" ) ) )
+ if ( app.startsWith( TQString::fromLatin1( "messaging/" ) ) )
{
- if ( name == QString::fromLatin1( "All" ) )
+ if ( name == TQString::fromLatin1( "All" ) )
{
kdDebug( 14010 ) << " syncing \"" << app << ":" << name << " with contactlist " << endl;
// Get the protocol name from the custom field
// by chopping the 'messaging/' prefix from the custom field app name
- QString protocolName = app.right( app.length() - 10 );
+ TQString protocolName = app.right( app.length() - 10 );
// munge Jabber hack
- if ( protocolName == QString::fromLatin1( "xmpp" ) )
- protocolName = QString::fromLatin1( "jabber" );
+ if ( protocolName == TQString::fromLatin1( "xmpp" ) )
+ protocolName = TQString::fromLatin1( "jabber" );
// Check Kopete supports it
- Protocol * proto = dynamic_cast( PluginManager::self()->loadPlugin( QString::fromLatin1( "kopete_" ) + protocolName ) );
+ Protocol * proto = dynamic_cast( PluginManager::self()->loadPlugin( TQString::fromLatin1( "kopete_" ) + protocolName ) );
if ( !proto )
{
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry,
@@ -297,20 +297,20 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc )
}
// See if we need to add each contact in this protocol
- QStringList addresses = QStringList::split( QChar( 0xE000 ), value );
- QStringList::iterator end = addresses.end();
- for ( QStringList::iterator it = addresses.begin(); it != end; ++it )
+ TQStringList addresses = TQStringList::split( TQChar( 0xE000 ), value );
+ TQStringList::iterator end = addresses.end();
+ for ( TQStringList::iterator it = addresses.begin(); it != end; ++it )
{
// check whether each one is present in Kopete
// Is it in the contact list?
// First discard anything after an 0xE120, this is used by IRC to separate nick and server group name, but
// IRC doesn't support this properly yet, so the user will have to select an appropriate account manually
- int separatorPos = (*it).find( QChar( 0xE120 ) );
+ int separatorPos = (*it).find( TQChar( 0xE120 ) );
if ( separatorPos != -1 )
*it = (*it).left( separatorPos );
- QDict accounts = Kopete::AccountManager::self()->accounts( proto );
- QDictIterator acs(accounts);
+ TQDict accounts = Kopete::AccountManager::self()->accounts( proto );
+ TQDictIterator acs(accounts);
Kopete::MetaContact *otherMc = 0;
for ( acs.toFirst(); acs.current(); ++acs )
{
@@ -332,14 +332,14 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc )
}
kdDebug( 14010 ) << *it << " already exists in OTHER metacontact, move here?" << endl;
// find the Kopete::Contact and attempt to move it to this metacontact.
- otherMc->findContact( proto->pluginId(), QString::null, *it )->setMetaContact( mc );
+ otherMc->findContact( proto->pluginId(), TQString::null, *it )->setMetaContact( mc );
}
else
{
// if not, prompt to add it
kdDebug( 14010 ) << proto->pluginId() << "://" << *it << " was not found in the contact list. Prompting to add..." << endl;
if ( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(),
- i18n( "An address was added to this contact by another application.
Would you like to use it in Kopete?
Protocol: %1
Address: %2" ).arg( proto->displayName() ).arg( *it ), i18n( "Import Address From Address Book" ), i18n("Use"), i18n("Do Not Use"), QString::fromLatin1( "ImportFromKABC" ) ) )
+ i18n( "An address was added to this contact by another application.
Would you like to use it in Kopete?
Protocol: %1
Address: %2" ).arg( proto->displayName() ).arg( *it ), i18n( "Import Address From Address Book" ), i18n("Use"), i18n("Do Not Use"), TQString::fromLatin1( "ImportFromKABC" ) ) )
{
// Check the accounts for this protocol are all connected
// Most protocols do not allow you to add contacts while offline
@@ -369,7 +369,7 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc )
AccountSelector *accSelector = new AccountSelector(proto, chooser,
"accSelector");
chooser->setMainWidget(accSelector);
- if ( chooser->exec() == QDialog::Rejected )
+ if ( chooser->exec() == TQDialog::Rejected )
continue;
chosen = accSelector->selectedItem();
@@ -418,11 +418,11 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc )
}
// FIXME: Remove when IM address API is in KABC (KDE 4)
-void KABCPersistence::splitField( const QString &str, QString &app, QString &name, QString &value )
+void KABCPersistence::splitField( const TQString &str, TQString &app, TQString &name, TQString &value )
{
int colon = str.find( ':' );
if ( colon != -1 ) {
- QString tmp = str.left( colon );
+ TQString tmp = str.left( colon );
value = str.mid( colon + 1 );
int dash = tmp.find( '-' );
diff --git a/kopete/libkopete/kabcpersistence.h b/kopete/libkopete/kabcpersistence.h
index fa02fb64..f827270f 100644
--- a/kopete/libkopete/kabcpersistence.h
+++ b/kopete/libkopete/kabcpersistence.h
@@ -54,7 +54,7 @@ class KOPETE_EXPORT KABCPersistence : public QObject
*/
static KABCPersistence* self();
- KABCPersistence( QObject * parent = 0, const char * name = 0 );
+ KABCPersistence( TQObject * parent = 0, const char * name = 0 );
~KABCPersistence();
/**
* @brief Access Kopete's KDE address book instance
@@ -86,7 +86,7 @@ class KOPETE_EXPORT KABCPersistence : public QObject
void writeAddressBook( const KABC::Resource * res );
protected:
- static void splitField( const QString &str, QString &app, QString &name, QString &value );
+ static void splitField( const TQString &str, TQString &app, TQString &name, TQString &value );
void dumpAB();
protected slots:
@@ -98,7 +98,7 @@ class KOPETE_EXPORT KABCPersistence : public QObject
static KABCPersistence * s_self;
static KABC::AddressBook* s_addressBook;
static bool s_addrBookWritePending;
- static QPtrList s_pendingResources;
+ static TQPtrList s_pendingResources;
};
} // end namespace Kopete
diff --git a/kopete/libkopete/kautoconfig.cpp b/kopete/libkopete/kautoconfig.cpp
index a1885537..d54e3123 100644
--- a/kopete/libkopete/kautoconfig.cpp
+++ b/kopete/libkopete/kautoconfig.cpp
@@ -21,8 +21,8 @@
#include "kautoconfig.h"
#include
-#include
-#include
+#include
+#include
#include
#include
#include
@@ -63,12 +63,12 @@ public:
{ init(); }
// Widgets to parse
- QPtrList widgets;
+ TQPtrList widgets;
// Name of the group that KConfig should be set to for each widget.
- QMap groups;
+ TQMap groups;
// Child widgets of widgets to ignore
- QPtrList ignore;
+ TQPtrList ignore;
// Reset to false after saveSettings returns true.
bool changed;
@@ -79,18 +79,18 @@ public:
#endif
// Known widgets that can be configured
- QMap > autoWidgets;
+ TQMap > autoWidgets;
// Default values for the widgets.
- QMap defaultValues;
- // Widgets to not get properties on (QLabel etc)
- QAsciiDict ignoreTheseWidgets;
+ TQMap defaultValues;
+ // Widgets to not get properties on (TQLabel etc)
+ TQAsciiDict ignoreTheseWidgets;
void init(){
- ignoreTheseWidgets.insert("QLabel", new int(1));
- ignoreTheseWidgets.insert("QFrame", new int(2));
- ignoreTheseWidgets.insert("QGroupBox", new int(3));
- ignoreTheseWidgets.insert("QButtonGroup", new int(4));
- ignoreTheseWidgets.insert("QWidget", new int(5));
+ ignoreTheseWidgets.insert("TQLabel", new int(1));
+ ignoreTheseWidgets.insert("TQFrame", new int(2));
+ ignoreTheseWidgets.insert("TQGroupBox", new int(3));
+ ignoreTheseWidgets.insert("TQButtonGroup", new int(4));
+ ignoreTheseWidgets.insert("TQWidget", new int(5));
ignoreTheseWidgets.setAutoDelete(true);
static bool defaultKDEPropertyMapInstalled = false;
@@ -101,13 +101,13 @@ public:
}
};
-KAutoConfig::KAutoConfig(KConfig *kconfig, QObject *parent,
- const char *name) : QObject(parent, name), config(kconfig) {
+KAutoConfig::KAutoConfig(KConfig *kconfig, TQObject *parent,
+ const char *name) : TQObject(parent, name), config(kconfig) {
d = new KAutoConfigPrivate();
}
-KAutoConfig::KAutoConfig(QObject *parent, const char *name) :
- QObject(parent, name), config(KGlobal::config()) {
+KAutoConfig::KAutoConfig(TQObject *parent, const char *name) :
+ TQObject(parent, name), config(KGlobal::config()) {
d = new KAutoConfigPrivate();
}
@@ -115,15 +115,15 @@ KAutoConfig::~KAutoConfig(){
delete d;
}
-void KAutoConfig::addWidget(QWidget *widget, const QString &group){
+void KAutoConfig::addWidget(TQWidget *widget, const TQString &group){
functionCallPostOrderCheck("addWidget",);
d->groups.insert(widget, group);
d->widgets.append(widget);
- QPtrList newAutoConfigWidget;
+ TQPtrList newAutoConfigWidget;
d->autoWidgets.insert(widget, newAutoConfigWidget );
}
-void KAutoConfig::ignoreSubWidget(QWidget *widget){
+void KAutoConfig::ignoreSubWidget(TQWidget *widget){
functionCallPostOrderCheck("ignoreSubWidget",);
d->ignore.append(widget);
}
@@ -141,51 +141,51 @@ bool KAutoConfig::retrieveSettings(bool trackChanges){
if(trackChanges){
// QT
- changedMap.insert(QString::fromLatin1("QButton"), SIGNAL(stateChanged(int)));
- changedMap.insert(QString::fromLatin1("QCheckBox"), SIGNAL(stateChanged(int)));
- changedMap.insert(QString::fromLatin1("QPushButton"), SIGNAL(stateChanged(int)));
- changedMap.insert(QString::fromLatin1("QRadioButton"), SIGNAL(stateChanged(int)));
- changedMap.insert(QString::fromLatin1("QComboBox"), SIGNAL(activated (int)));
+ changedMap.insert(TQString::fromLatin1("TQButton"), TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert(TQString::fromLatin1("TQCheckBox"), TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert(TQString::fromLatin1("TQPushButton"), TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert(TQString::fromLatin1("TQRadioButton"), TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert(TQString::fromLatin1("TQComboBox"), TQT_SIGNAL(activated (int)));
//qsqlproperty map doesn't store the text, but the value!
- //changedMap.insert(QString::fromLatin1("QComboBox"), SIGNAL(textChanged(const QString &)));
- changedMap.insert(QString::fromLatin1("QDateEdit"), SIGNAL(valueChanged(const QDate &)));
- changedMap.insert(QString::fromLatin1("QDateTimeEdit"), SIGNAL(valueChanged(const QDateTime &)));
- changedMap.insert(QString::fromLatin1("QDial"), SIGNAL(valueChanged (int)));
- changedMap.insert(QString::fromLatin1("QLineEdit"), SIGNAL(textChanged(const QString &)));
- changedMap.insert(QString::fromLatin1("QSlider"), SIGNAL(valueChanged(int)));
- changedMap.insert(QString::fromLatin1("QSpinBox"), SIGNAL(valueChanged(int)));
- changedMap.insert(QString::fromLatin1("QTimeEdit"), SIGNAL(valueChanged(const QTime &)));
- changedMap.insert(QString::fromLatin1("QTextEdit"), SIGNAL(textChanged()));
- changedMap.insert(QString::fromLatin1("QTextBrowser"), SIGNAL(sourceChanged(const QString &)));
- changedMap.insert(QString::fromLatin1("QMultiLineEdit"), SIGNAL(textChanged()));
- changedMap.insert(QString::fromLatin1("QListBox"), SIGNAL(selectionChanged()));
- changedMap.insert(QString::fromLatin1("QTabWidget"), SIGNAL(currentChanged(QWidget *)));
+ //changedMap.insert(TQString::fromLatin1("TQComboBox"), TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert(TQString::fromLatin1("QDateEdit"), TQT_SIGNAL(valueChanged(const TQDate &)));
+ changedMap.insert(TQString::fromLatin1("QDateTimeEdit"), TQT_SIGNAL(valueChanged(const TQDateTime &)));
+ changedMap.insert(TQString::fromLatin1("TQDial"), TQT_SIGNAL(valueChanged (int)));
+ changedMap.insert(TQString::fromLatin1("TQLineEdit"), TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert(TQString::fromLatin1("TQSlider"), TQT_SIGNAL(valueChanged(int)));
+ changedMap.insert(TQString::fromLatin1("TQSpinBox"), TQT_SIGNAL(valueChanged(int)));
+ changedMap.insert(TQString::fromLatin1("QTimeEdit"), TQT_SIGNAL(valueChanged(const TQTime &)));
+ changedMap.insert(TQString::fromLatin1("TQTextEdit"), TQT_SIGNAL(textChanged()));
+ changedMap.insert(TQString::fromLatin1("TQTextBrowser"), TQT_SIGNAL(sourceChanged(const TQString &)));
+ changedMap.insert(TQString::fromLatin1("TQMultiLineEdit"), TQT_SIGNAL(textChanged()));
+ changedMap.insert(TQString::fromLatin1("TQListBox"), TQT_SIGNAL(selectionChanged()));
+ changedMap.insert(TQString::fromLatin1("TQTabWidget"), TQT_SIGNAL(currentChanged(TQWidget *)));
// KDE
- changedMap.insert( QString::fromLatin1("KComboBox"), SIGNAL(activated (int)));
- changedMap.insert( QString::fromLatin1("KFontCombo"), SIGNAL(activated (int)));
- changedMap.insert( QString::fromLatin1("KFontRequester"), SIGNAL(fontSelected(const QFont &)));
- changedMap.insert( QString::fromLatin1("KFontChooser"), SIGNAL(fontSelected(const QFont &)));
- changedMap.insert( QString::fromLatin1("KHistoryCombo"), SIGNAL(activated (int)));
-
- changedMap.insert( QString::fromLatin1("KColorButton"), SIGNAL(changed(const QColor &)));
- changedMap.insert( QString::fromLatin1("KDatePicker"), SIGNAL(dateSelected (QDate)));
- changedMap.insert( QString::fromLatin1("KEditListBox"), SIGNAL(changed()));
- changedMap.insert( QString::fromLatin1("KListBox"), SIGNAL(selectionChanged()));
- changedMap.insert( QString::fromLatin1("KLineEdit"), SIGNAL(textChanged(const QString &)));
- changedMap.insert( QString::fromLatin1("KPasswordEdit"), SIGNAL(textChanged(const QString &)));
- changedMap.insert( QString::fromLatin1("KRestrictedLine"), SIGNAL(textChanged(const QString &)));
- changedMap.insert( QString::fromLatin1("KTextBrowser"), SIGNAL(sourceChanged(const QString &)));
- changedMap.insert( QString::fromLatin1("KTextEdit"), SIGNAL(textChanged()));
- changedMap.insert( QString::fromLatin1("KURLRequester"), SIGNAL(textChanged (const QString& )));
- changedMap.insert( QString::fromLatin1("KIntNumInput"), SIGNAL(valueChanged (int)));
- changedMap.insert( QString::fromLatin1("KIntSpinBox"), SIGNAL(valueChanged (int)));
- changedMap.insert( QString::fromLatin1("KDoubleNumInput"), SIGNAL(valueChanged (double)));
+ changedMap.insert( TQString::fromLatin1("KComboBox"), TQT_SIGNAL(activated (int)));
+ changedMap.insert( TQString::fromLatin1("KFontCombo"), TQT_SIGNAL(activated (int)));
+ changedMap.insert( TQString::fromLatin1("KFontRequester"), TQT_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( TQString::fromLatin1("KFontChooser"), TQT_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( TQString::fromLatin1("KHistoryCombo"), TQT_SIGNAL(activated (int)));
+
+ changedMap.insert( TQString::fromLatin1("KColorButton"), TQT_SIGNAL(changed(const TQColor &)));
+ changedMap.insert( TQString::fromLatin1("KDatePicker"), TQT_SIGNAL(dateSelected (TQDate)));
+ changedMap.insert( TQString::fromLatin1("KEditListBox"), TQT_SIGNAL(changed()));
+ changedMap.insert( TQString::fromLatin1("KListBox"), TQT_SIGNAL(selectionChanged()));
+ changedMap.insert( TQString::fromLatin1("KLineEdit"), TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( TQString::fromLatin1("KPasswordEdit"), TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( TQString::fromLatin1("KRestrictedLine"), TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( TQString::fromLatin1("KTextBrowser"), TQT_SIGNAL(sourceChanged(const TQString &)));
+ changedMap.insert( TQString::fromLatin1("KTextEdit"), TQT_SIGNAL(textChanged()));
+ changedMap.insert( TQString::fromLatin1("KURLRequester"), TQT_SIGNAL(textChanged (const TQString& )));
+ changedMap.insert( TQString::fromLatin1("KIntNumInput"), TQT_SIGNAL(valueChanged (int)));
+ changedMap.insert( TQString::fromLatin1("KIntSpinBox"), TQT_SIGNAL(valueChanged (int)));
+ changedMap.insert( TQString::fromLatin1("KDoubleNumInput"), TQT_SIGNAL(valueChanged (double)));
}
// Go through all of the children of the widgets and find all known widgets
- QPtrListIterator it( d->widgets );
- QWidget *widget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *widget;
bool usingDefaultValues = false;
while ( (widget = it.current()) != 0 ) {
++it;
@@ -198,30 +198,30 @@ bool KAutoConfig::retrieveSettings(bool trackChanges){
bool KAutoConfig::saveSettings() {
functionCallPreOrderCheck("saveSettings", false);
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
// Go through all of the widgets
- QPtrListIterator it( d->widgets );
- QWidget *widget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *widget;
while ( (widget = it.current()) != 0 ) {
++it;
config->setGroup(d->groups[widget]);
// Go through the known autowidgets of this widget and save
- QPtrListIterator it( d->autoWidgets[widget] );
- QWidget *groupWidget;
+ TQPtrListIterator it( d->autoWidgets[widget] );
+ TQWidget *groupWidget;
bool widgetChanged = false;
while ( (groupWidget = it.current()) != 0 ){
++it;
- QVariant defaultValue = d->defaultValues[groupWidget];
- QVariant currentValue = propertyMap->property(groupWidget);
+ TQVariant defaultValue = d->defaultValues[groupWidget];
+ TQVariant currentValue = propertyMap->property(groupWidget);
#if KDE_IS_VERSION( 3, 1, 90 )
- if(!config->hasDefault(QString::fromLatin1(groupWidget->name())) && currentValue == defaultValue){
- config->revertToDefault(QString::fromLatin1(groupWidget->name()));
+ if(!config->hasDefault(TQString::fromLatin1(groupWidget->name())) && currentValue == defaultValue){
+ config->revertToDefault(TQString::fromLatin1(groupWidget->name()));
widgetChanged = true;
}
else{
#endif
- QVariant savedValue = config->readPropertyEntry(groupWidget->name(),
+ TQVariant savedValue = config->readPropertyEntry(groupWidget->name(),
defaultValue);
if(savedValue != currentValue){
config->writeEntry(groupWidget->name(), currentValue);
@@ -248,21 +248,21 @@ bool KAutoConfig::saveSettings() {
bool KAutoConfig::hasChanged() const {
functionCallPreOrderCheck("hasChanged", false);
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
// Go through all of the widgets
- QPtrListIterator it( d->widgets );
- QWidget *widget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *widget;
while ( (widget = it.current()) != 0 ) {
++it;
config->setGroup(d->groups[widget]);
// Go through the known autowidgets of this widget and save
- QPtrListIterator it( d->autoWidgets[widget] );
- QWidget *groupWidget;
+ TQPtrListIterator it( d->autoWidgets[widget] );
+ TQWidget *groupWidget;
while ( (groupWidget = it.current()) != 0 ){
++it;
- QVariant defaultValue = d->defaultValues[groupWidget];
- QVariant currentValue = propertyMap->property(groupWidget);
- QVariant savedValue = config->readPropertyEntry(groupWidget->name(),
+ TQVariant defaultValue = d->defaultValues[groupWidget];
+ TQVariant currentValue = propertyMap->property(groupWidget);
+ TQVariant savedValue = config->readPropertyEntry(groupWidget->name(),
defaultValue);
// Return once just one item is found to have changed.
@@ -277,20 +277,20 @@ bool KAutoConfig::hasChanged() const {
bool KAutoConfig::isDefault() const {
functionCallPreOrderCheck("isDefault", false);
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
// Go through all of the widgets
- QPtrListIterator it( d->widgets );
- QWidget *widget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *widget;
while ( (widget = it.current()) != 0 ) {
++it;
config->setGroup(d->groups[widget]);
// Go through the known autowidgets of this widget and save
- QPtrListIterator it( d->autoWidgets[widget] );
- QWidget *groupWidget;
+ TQPtrListIterator it( d->autoWidgets[widget] );
+ TQWidget *groupWidget;
while ( (groupWidget = it.current()) != 0 ){
++it;
- QVariant defaultValue = d->defaultValues[groupWidget];
- QVariant currentValue = propertyMap->property(groupWidget);
+ TQVariant defaultValue = d->defaultValues[groupWidget];
+ TQVariant currentValue = propertyMap->property(groupWidget);
if(currentValue != defaultValue){
//qDebug("groupWidget %s, has changed: default: %s new: %s", groupWidget->name(), defaultValue.toString().latin1(), currentValue.toString().latin1());
return false;
@@ -303,20 +303,20 @@ bool KAutoConfig::isDefault() const {
void KAutoConfig::resetSettings() const {
functionCallPreOrderCheck("resetSettings",);
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
// Go through all of the widgets
- QPtrListIterator it( d->widgets );
- QWidget *widget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *widget;
while ( (widget = it.current()) != 0 ) {
++it;
config->setGroup(d->groups[widget]);
// Go through the known autowidgets of this widget and save
- QPtrListIterator it( d->autoWidgets[widget] );
- QWidget *groupWidget;
+ TQPtrListIterator it( d->autoWidgets[widget] );
+ TQWidget *groupWidget;
while ( (groupWidget = it.current()) != 0 ){
++it;
- QVariant defaultValue = d->defaultValues[groupWidget];
+ TQVariant defaultValue = d->defaultValues[groupWidget];
if(defaultValue != propertyMap->property(groupWidget)){
propertyMap->setProperty(groupWidget, defaultValue);
d->changed = true;
@@ -328,21 +328,21 @@ void KAutoConfig::resetSettings() const {
void KAutoConfig::reloadSettings() const {
functionCallPreOrderCheck("reloadSettings", );
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
// Go through all of the widgets
- QPtrListIterator it( d->widgets );
- QWidget *pageWidget;
+ TQPtrListIterator it( d->widgets );
+ TQWidget *pageWidget;
while ( (pageWidget = it.current()) != 0 ) {
++it;
config->setGroup(d->groups[pageWidget]);
// Go through the known widgets of this page and reload
- QPtrListIterator it( d->autoWidgets[pageWidget] );
- QWidget *widget;
+ TQPtrListIterator it( d->autoWidgets[pageWidget] );
+ TQWidget *widget;
while ( (widget = it.current()) != 0 ){
++it;
- QVariant defaultSetting = d->defaultValues[widget];
- QVariant setting =
+ TQVariant defaultSetting = d->defaultValues[widget];
+ TQVariant setting =
config->readPropertyEntry(widget->name(), defaultSetting);
propertyMap->setProperty(widget, setting);
}
@@ -350,23 +350,23 @@ void KAutoConfig::reloadSettings() const {
d->changed = false;
}
-bool KAutoConfig::parseChildren(const QWidget *widget,
- QPtrList& currentGroup, bool trackChanges){
+bool KAutoConfig::parseChildren(const TQWidget *widget,
+ TQPtrList& currentGroup, bool trackChanges){
bool valueChanged = false;
- const QPtrList *listOfChildren = widget->children();
+ const TQPtrList *listOfChildren = widget->children();
if(!listOfChildren)
return valueChanged;
- QSqlPropertyMap *propertyMap = QSqlPropertyMap::defaultMap();
- QPtrListIterator it( *listOfChildren );
- QObject *object;
+ TQSqlPropertyMap *propertyMap = TQSqlPropertyMap::defaultMap();
+ TQPtrListIterator it( *listOfChildren );
+ TQObject *object;
while ( (object = it.current()) != 0 )
{
++it;
if(!object->isWidgetType()){
continue;
}
- QWidget *childWidget = (QWidget *)object;
+ TQWidget *childWidget = (TQWidget *)object;
if(d->ignore.containsRef(childWidget)){
continue;
}
@@ -385,12 +385,12 @@ bool KAutoConfig::parseChildren(const QWidget *widget,
if( d->ignoreTheseWidgets[childWidget->className()] == 0 &&
childWidget->name(0) != NULL )
{
- QVariant defaultSetting = propertyMap->property(childWidget);
+ TQVariant defaultSetting = propertyMap->property(childWidget);
if(defaultSetting.isValid())
{
parseTheChildren = false;
// Disable the widget if it is immutable?
- if(config->entryIsImmutable( QString::fromLatin1(childWidget->name())))
+ if(config->entryIsImmutable( TQString::fromLatin1(childWidget->name())))
childWidget->setEnabled(false);
else
{
@@ -401,22 +401,22 @@ bool KAutoConfig::parseChildren(const QWidget *widget,
d->defaultValues.insert(childWidget, defaultSetting);
}
// Get/Set settings and connect up the changed signal
- QVariant setting =
+ TQVariant setting =
config->readPropertyEntry(childWidget->name(), defaultSetting);
if(setting != defaultSetting)
{
propertyMap->setProperty(childWidget, setting);
valueChanged = true;
}
- if(trackChanges && changedMap.find(QString::fromLatin1(childWidget->className())) !=
+ if(trackChanges && changedMap.find(TQString::fromLatin1(childWidget->className())) !=
changedMap.end())
{
- connect(childWidget, changedMap[QString::fromLatin1(childWidget->className())],
- this, SIGNAL(widgetModified()));
+ connect(childWidget, changedMap[TQString::fromLatin1(childWidget->className())],
+ this, TQT_SIGNAL(widgetModified()));
}
#ifndef NDEBUG
else if(trackChanges &&
- changedMap.find(QString::fromLatin1(childWidget->className())) == changedMap.end())
+ changedMap.find(TQString::fromLatin1(childWidget->className())) == changedMap.end())
{
// Without a signal kautoconfigdialog could incorectly
// enable/disable the buttons
diff --git a/kopete/libkopete/kautoconfig.h b/kopete/libkopete/kautoconfig.h
index a4cd243b..f3122fee 100644
--- a/kopete/libkopete/kautoconfig.h
+++ b/kopete/libkopete/kautoconfig.h
@@ -20,8 +20,8 @@
#ifndef KAUTOCONFIG_H
#define KAUTOCONFIG_H
-#include
-#include
+#include
+#include
#include "kopete_export.h"
@@ -53,11 +53,11 @@ class QWidget;
* If one of the widgets needs special treatment it can be specified to be
* ignored using the ignoreSubWidget() function.
*
- * KAutoConfig uses the QSqlPropertyMap class to determine if it can do
+ * KAutoConfig uses the TQSqlPropertyMap class to determine if it can do
* anything to a widget. Note that KAutoConfig doesn't require a database,
* it simply uses the functionality that is built into the QSqlPropertyMap
* class. New widgets can be added to the map using
- * QSqlPropertyMap::installDefaultMap(). Note that you can't just add any
+ * TQSqlPropertyMap::installDefaultMap(). Note that you can't just add any
* class. The class must have a matching Q_PROPERTY(...) macro defined.
*
* For example (note that KColorButton is already added and it doesn't need to
@@ -65,18 +65,18 @@ class QWidget;
*
* kcolorbutton.h defines the following property:
* \code
- * Q_PROPERTY( QColor color READ color WRITE setColor )
+ * Q_PROPERTY( TQColor color READ color WRITE setColor )
* \endcode
*
* To add KColorButton the following code would be inserted in the main.
*
* \code
- * QSqlPropertyMap *map = QSqlPropertyMap::defaultMap();
+ * TQSqlPropertyMap *map = TQSqlPropertyMap::defaultMap();
* map.insert("KColorButton", "color");
- * QSqlPropertyMap::installDefaultMap(map);
+ * TQSqlPropertyMap::installDefaultMap(map);
* \endcode
*
- * If you add a new widget to the QSqlPropertyMap and wish to be notified when
+ * If you add a new widget to the TQSqlPropertyMap and wish to be notified when
* it is modified you should add its signal using addWidgetChangedSignal().
* If the Apply and Default buttons and enabled/disabled by KAutoConfigDialog
* automatically then this must be done.
@@ -85,7 +85,7 @@ class QWidget;
* @since 3.2
* @author Benjamin C Meyer
*/
-class KOPETE_EXPORT KAutoConfig : public QObject {
+class KOPETE_EXPORT KAutoConfig : public TQObject {
Q_OBJECT
@@ -103,7 +103,7 @@ signals:
* contains the one or more modified setting.
* @see settingsChanged()
*/
- void settingsChanged( QWidget *widget );
+ void settingsChanged( TQWidget *widget );
/**
* If retrieveSettings() was told to track changes then if
@@ -123,7 +123,7 @@ public:
* @param parent - Parent object.
* @param name - Object name.
*/
- KAutoConfig( KConfig *kconfig, QObject *parent=0, const char *name=0 );
+ KAutoConfig( KConfig *kconfig, TQObject *parent=0, const char *name=0 );
/**
* Constructor.
@@ -132,7 +132,7 @@ public:
* @param parent - Parent object.
* @param name - Object name.
*/
- KAutoConfig( QObject *parent=0, const char *name=0 );
+ KAutoConfig( TQObject *parent=0, const char *name=0 );
/**
* Destructor. Deletes private class.
@@ -150,7 +150,7 @@ public:
* group it should be added separately and also ignored.
* @see ignoreSubWidget()
*/
- void addWidget( QWidget *widget, const QString &group );
+ void addWidget( TQWidget *widget, const TQString &group );
/**
* Ignore the specified child widget when performing an action. Doesn't
@@ -159,7 +159,7 @@ public:
* @param widget - Pointer to the widget that should be ignored.
* Note: Widgets that don't have a name are ignored automatically.
**/
- void ignoreSubWidget( QWidget *widget );
+ void ignoreSubWidget( TQWidget *widget );
/**
* Traverse the specified widgets to see if anything is different then the
@@ -185,17 +185,17 @@ public:
*
* Example:
* \code
- * addWidgetChangedSignal( "QCheckbox", SIGNAL(stateChanged(int)) );
+ * addWidgetChangedSignal( "QCheckbox", TQT_SIGNAL(stateChanged(int)) );
* \endcode
*
* This is generally used in conjunction with the addition of a class
- * to QSqlPropertyMap so KAutoConfig can get/set its values.
+ * to TQSqlPropertyMap so KAutoConfig can get/set its values.
*
* @param widgetName - The class name of the widget (className()).
- * @param signal - The signal (with "SIGNAL()" wrapper) that should be called.
+ * @param signal - The signal (with "TQT_SIGNAL()" wrapper) that should be called.
*/
- inline void addWidgetChangedSignal( const QString &widgetName,
- const QCString &signal ){
+ inline void addWidgetChangedSignal( const TQString &widgetName,
+ const TQCString &signal ){
changedMap.insert( widgetName, signal );
}
@@ -248,7 +248,7 @@ protected:
/**
* Map of the classes and the signals that they emit when changed.
*/
- QMap changedMap;
+ TQMap changedMap;
/**
* Recursive function that finds all known children.
@@ -262,8 +262,8 @@ protected:
* @return bool - If a widget was set to something other then its default.
* @see retrieveSettings()
*/
- bool parseChildren( const QWidget *widget,
- QPtrList¤tGroup, bool trackChanges );
+ bool parseChildren( const TQWidget *widget,
+ TQPtrList¤tGroup, bool trackChanges );
private:
class KAutoConfigPrivate;
diff --git a/kopete/libkopete/kcautoconfigmodule.cpp b/kopete/libkopete/kcautoconfigmodule.cpp
index 9ef34be1..122a3e7b 100644
--- a/kopete/libkopete/kcautoconfigmodule.cpp
+++ b/kopete/libkopete/kcautoconfigmodule.cpp
@@ -19,7 +19,7 @@
#include "kcautoconfigmodule.h"
-#include
+#include
#include
@@ -30,41 +30,41 @@ class KCAutoConfigModule::KCAutoConfigModulePrivate
};
-KCAutoConfigModule::KCAutoConfigModule( QWidget * parent, const char * name, const QStringList & args )
+KCAutoConfigModule::KCAutoConfigModule( TQWidget * parent, const char * name, const TQStringList & args )
: KCModule( parent, name, args )
, d( new KCAutoConfigModulePrivate )
{
d->kautoconfig = new KAutoConfig( this );
- connect(d->kautoconfig, SIGNAL(widgetModified()), SLOT(slotWidgetModified()));
- connect(d->kautoconfig, SIGNAL(settingsChanged()), SLOT(widgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(widgetModified()), TQT_SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(settingsChanged()), TQT_SLOT(widgetModified()));
}
-KCAutoConfigModule::KCAutoConfigModule( KInstance * instance, QWidget * parent, const QStringList & args )
+KCAutoConfigModule::KCAutoConfigModule( KInstance * instance, TQWidget * parent, const TQStringList & args )
: KCModule( instance, parent, args )
, d( new KCAutoConfigModulePrivate )
{
d->kautoconfig = new KAutoConfig( this );
- connect(d->kautoconfig, SIGNAL(widgetModified()), SLOT(slotWidgetModified()));
- connect(d->kautoconfig, SIGNAL(settingsChanged()), SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(widgetModified()), TQT_SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(settingsChanged()), TQT_SLOT(slotWidgetModified()));
}
-KCAutoConfigModule::KCAutoConfigModule( KConfig *config,QWidget * parent, const char * name, const QStringList & args )
+KCAutoConfigModule::KCAutoConfigModule( KConfig *config,TQWidget * parent, const char * name, const TQStringList & args )
: KCModule( parent, name, args ) , d( new KCAutoConfigModulePrivate )
{
d->kautoconfig = new KAutoConfig( config, this );
- connect(d->kautoconfig, SIGNAL(widgetModified()), SLOT(slotWidgetModified()));
- connect(d->kautoconfig, SIGNAL(settingsChanged()), SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(widgetModified()), TQT_SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(settingsChanged()), TQT_SLOT(slotWidgetModified()));
}
-KCAutoConfigModule::KCAutoConfigModule( KConfig *config , KInstance * instance, QWidget * parent, const QStringList & args )
+KCAutoConfigModule::KCAutoConfigModule( KConfig *config , KInstance * instance, TQWidget * parent, const TQStringList & args )
: KCModule( instance, parent, args )
, d( new KCAutoConfigModulePrivate )
{
d->kautoconfig = new KAutoConfig( config, this );
- connect(d->kautoconfig, SIGNAL(widgetModified()), SLOT(slotWidgetModified()));
- connect(d->kautoconfig, SIGNAL(settingsChanged()), SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(widgetModified()), TQT_SLOT(slotWidgetModified()));
+ connect(d->kautoconfig, TQT_SIGNAL(settingsChanged()), TQT_SLOT(slotWidgetModified()));
}
@@ -99,9 +99,9 @@ KAutoConfig *KCAutoConfigModule::autoConfig()
return d->kautoconfig;
}
-void KCAutoConfigModule::setMainWidget(QWidget *widget, const QString& group )
+void KCAutoConfigModule::setMainWidget(TQWidget *widget, const TQString& group )
{
- QBoxLayout * l = new QVBoxLayout( this );
+ TQBoxLayout * l = new TQVBoxLayout( this );
l->addWidget( widget );
d->kautoconfig->addWidget(widget,group);
diff --git a/kopete/libkopete/kcautoconfigmodule.h b/kopete/libkopete/kcautoconfigmodule.h
index 6076b211..fcca6047 100644
--- a/kopete/libkopete/kcautoconfigmodule.h
+++ b/kopete/libkopete/kcautoconfigmodule.h
@@ -36,10 +36,10 @@ class KConfig;
* config page with QDesigner, and add it to the module
* This can be done using the setMainWidget() method:
* \code
- * typedef KGenericFactory MyPageConfigFactory;
+ * typedef KGenericFactory MyPageConfigFactory;
* K_EXPORT_COMPONENT_FACTORY( kcm_mypageconfig, MyPageConfigFactory( "kcm_mypageconfig" ) )
*
- * MyPageConfig( QWidget * parent, const char *, const QStringList & args )
+ * MyPageConfig( TQWidget * parent, const char *, const TQStringList & args )
* : KCAutoConfigModule( MyPageConfigFactory::instance(), parent, args )
* {
* setMainWidget( new MyPageConfigBase(this) , "MyGroup" );
@@ -57,12 +57,12 @@ class KOPETE_EXPORT KCAutoConfigModule : public KCModule
/**
* Standard KCModule constructor. Use KGlobal::config()
*/
- KCAutoConfigModule( QWidget * parent = 0, const char * name = 0, const QStringList & args = QStringList() );
+ KCAutoConfigModule( TQWidget * parent = 0, const char * name = 0, const TQStringList & args = TQStringList() );
/**
* Standard KCModule constructor. Use KGlobal::config()
*/
- KCAutoConfigModule( KInstance * instance, QWidget * parent = 0, const QStringList & args = QStringList() );
+ KCAutoConfigModule( KInstance * instance, TQWidget * parent = 0, const TQStringList & args = TQStringList() );
/**
* Constructor.
@@ -73,7 +73,7 @@ class KOPETE_EXPORT KCAutoConfigModule : public KCModule
*
* @todo document what the args mean (inherited from KCModule?)
*/
- KCAutoConfigModule(KConfig* config, KInstance * instance, QWidget * parent = 0, const QStringList & args = QStringList() );
+ KCAutoConfigModule(KConfig* config, KInstance * instance, TQWidget * parent = 0, const TQStringList & args = TQStringList() );
/**
* Constructor, much like the one above, except with
@@ -83,7 +83,7 @@ class KOPETE_EXPORT KCAutoConfigModule : public KCModule
* @param name name of the object
* @param args special arguments for this KCM
*/
- KCAutoConfigModule(KConfig* config, QWidget * parent = 0, const char * name=0 , const QStringList & args = QStringList() );
+ KCAutoConfigModule(KConfig* config, TQWidget * parent = 0, const char * name=0 , const TQStringList & args = TQStringList() );
~KCAutoConfigModule();
@@ -97,7 +97,7 @@ class KOPETE_EXPORT KCAutoConfigModule : public KCModule
* @param widget the widget to place on the page and to add in the KAutoConfig
* @param group the name of the group where settings are stored in the config file
*/
- void setMainWidget(QWidget *widget, const QString& group);
+ void setMainWidget(TQWidget *widget, const TQString& group);
/**
* @brief a reference to the KAutoConfig
diff --git a/kopete/libkopete/knotification.cpp b/kopete/libkopete/knotification.cpp
index 737fe102..4b41b48b 100644
--- a/kopete/libkopete/knotification.cpp
+++ b/kopete/libkopete/knotification.cpp
@@ -33,20 +33,20 @@
#include
-#include
+#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
//TODO, make the KNotification aware of the systemtray.
#include "kopeteuiglobal.h"
-static WId checkWinId( const QString &/*appName*/, WId senderWinId )
+static WId checkWinId( const TQString &/*appName*/, WId senderWinId )
{
if(senderWinId==0)
senderWinId=Kopete::UI::Global::sysTrayWId();
@@ -57,14 +57,14 @@ static WId checkWinId( const QString &/*appName*/, WId senderWinId )
struct KNotification::Private
{
- QWidget *widget;
- QString text;
- QStringList actions;
+ TQWidget *widget;
+ TQString text;
+ TQStringList actions;
int level;
};
-KNotification::KNotification(QObject *parent) :
- QObject(parent) , d(new Private)
+KNotification::KNotification(TQObject *parent) :
+ TQObject(parent) , d(new Private)
{
m_linkClicked = false;
}
@@ -75,20 +75,20 @@ KNotification::~KNotification()
}
-void KNotification::notifyByExecute(const QString &command, const QString& event,
- const QString& fromApp, const QString& text,
+void KNotification::notifyByExecute(const TQString &command, const TQString& event,
+ const TQString& fromApp, const TQString& text,
int winId, int eventId)
{
if (!command.isEmpty())
{
// kdDebug() << "executing command '" << command << "'" << endl;
- QMap subst;
+ TQMap subst;
subst.insert( 'e', event );
subst.insert( 'a', fromApp );
subst.insert( 's', text );
- subst.insert( 'w', QString::number( winId ));
- subst.insert( 'i', QString::number( eventId ));
- QString execLine = KMacroExpander::expandMacrosShellQuote( command, subst );
+ subst.insert( 'w', TQString::number( winId ));
+ subst.insert( 'i', TQString::number( eventId ));
+ TQString execLine = KMacroExpander::expandMacrosShellQuote( command, subst );
if ( execLine.isEmpty() )
execLine = command; // fallback
@@ -108,7 +108,7 @@ void KNotification::notifyByMessagebox()
if ( d->text.isEmpty() )
return;
- QString action=d->actions[0];
+ TQString action=d->actions[0];
WId winId=d->widget ? d->widget->topLevelWidget()->winId() : 0;
if( action.isEmpty())
@@ -134,21 +134,21 @@ void KNotification::notifyByMessagebox()
else
{ //we may show the specific action button
int result=0;
- QGuardedPtr _this=this; //this can be deleted
+ TQGuardedPtr _this=this; //this can be deleted
switch( d->level )
{
default:
case KNotifyClient::Notification:
- result = KMessageBox::questionYesNo(d->widget, d->text, i18n( "Notification" ), action, KStdGuiItem::cancel(), QString::null, false );
+ result = KMessageBox::questionYesNo(d->widget, d->text, i18n( "Notification" ), action, KStdGuiItem::cancel(), TQString::null, false );
break;
case KNotifyClient::Warning:
- result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Warning" ), action, KStdGuiItem::cancel(), QString::null, false );
+ result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Warning" ), action, KStdGuiItem::cancel(), TQString::null, false );
break;
case KNotifyClient::Error:
- result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Error" ), action, KStdGuiItem::cancel(), QString::null, false );
+ result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Error" ), action, KStdGuiItem::cancel(), TQString::null, false );
break;
case KNotifyClient::Catastrophe:
- result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Fatal" ), action, KStdGuiItem::cancel(), QString::null, false );
+ result = KMessageBox::warningYesNo( d->widget, d->text, i18n( "Fatal" ), action, KStdGuiItem::cancel(), TQString::null, false );
break;
}
if(result==KMessageBox::Yes && _this)
@@ -160,30 +160,30 @@ void KNotification::notifyByMessagebox()
-void KNotification::notifyByPassivePopup(const QPixmap &pix )
+void KNotification::notifyByPassivePopup(const TQPixmap &pix )
{
- QString appName = QString::fromAscii( KNotifyClient::instance()->instanceName() );
+ TQString appName = TQString::fromAscii( KNotifyClient::instance()->instanceName() );
KIconLoader iconLoader( appName );
- KConfig eventsFile( QString::fromAscii( KNotifyClient::instance()->instanceName()+"/eventsrc" ), true, false, "data");
+ KConfig eventsFile( TQString::fromAscii( KNotifyClient::instance()->instanceName()+"/eventsrc" ), true, false, "data");
KConfigGroup config( &eventsFile, "!Global!" );
- QString iconName = config.readEntry( "IconName", appName );
- QPixmap icon = iconLoader.loadIcon( iconName, KIcon::Small );
- QString title = config.readEntry( "Comment", appName );
+ TQString iconName = config.readEntry( "IconName", appName );
+ TQPixmap icon = iconLoader.loadIcon( iconName, KIcon::Small );
+ TQString title = config.readEntry( "Comment", appName );
//KPassivePopup::message(title, text, icon, senderWinId);
WId winId=d->widget ? d->widget->topLevelWidget()->winId() : 0;
KPassivePopup *pop = new KPassivePopup( checkWinId(appName, winId) );
- QObject::connect(this, SIGNAL(closed()), pop, SLOT(deleteLater()));
+ TQObject::connect(this, TQT_SIGNAL(closed()), pop, TQT_SLOT(deleteLater()));
- QVBox *vb = pop->standardView( title, pix.isNull() ? d->text: QString::null , icon );
- QVBox *vb2=vb;
+ TQVBox *vb = pop->standardView( title, pix.isNull() ? d->text: TQString::null , icon );
+ TQVBox *vb2=vb;
if(!pix.isNull())
{
- QHBox *hb = new QHBox(vb);
+ TQHBox *hb = new TQHBox(vb);
hb->setSpacing(KDialog::spacingHint());
- QLabel *pil=new QLabel(hb);
+ TQLabel *pil=new TQLabel(hb);
pil->setPixmap(pix);
pil->setScaledContents(true);
if(pix.height() > 80 && pix.height() > pix.width() )
@@ -196,27 +196,27 @@ void KNotification::notifyByPassivePopup(const QPixmap &pix )
pil->setMaximumWidth(80);
pil->setMaximumHeight(80*pix.height()/pix.width());
}
- vb=new QVBox(hb);
- QLabel *msg = new QLabel( d->text, vb, "msg_label" );
+ vb=new TQVBox(hb);
+ TQLabel *msg = new TQLabel( d->text, vb, "msg_label" );
msg->setAlignment( AlignLeft );
}
if ( !d->actions.isEmpty() )
{
- QString linkCode=QString::fromLatin1("");
+ TQString linkCode=TQString::fromLatin1("
");
int i=0;
- for ( QStringList::ConstIterator it = d->actions.begin() ; it != d->actions.end(); ++it )
+ for ( TQStringList::ConstIterator it = d->actions.begin() ; it != d->actions.end(); ++it )
{
i++;
- linkCode+=QString::fromLatin1(" %2 ").arg( QString::number(i) , QStyleSheet::escape(*it) );
+ linkCode+=TQString::fromLatin1(" %2 ").arg( TQString::number(i) , TQStyleSheet::escape(*it) );
}
- linkCode+=QString::fromLatin1("
");
+ linkCode+=TQString::fromLatin1("
");
KActiveLabel *link = new KActiveLabel(linkCode , vb );
//link->setAlignment( AlignRight );
- QObject::disconnect(link, SIGNAL(linkClicked(const QString &)), link, SLOT(openLink(const QString &)));
- QObject::connect(link, SIGNAL(linkClicked(const QString &)), this, SLOT(slotPopupLinkClicked(const QString &)));
- QObject::connect(link, SIGNAL(linkClicked(const QString &)), pop, SLOT(hide()));
+ TQObject::disconnect(link, TQT_SIGNAL(linkClicked(const TQString &)), link, TQT_SLOT(openLink(const TQString &)));
+ TQObject::connect(link, TQT_SIGNAL(linkClicked(const TQString &)), this, TQT_SLOT(slotPopupLinkClicked(const TQString &)));
+ TQObject::connect(link, TQT_SIGNAL(linkClicked(const TQString &)), pop, TQT_SLOT(hide()));
}
pop->setAutoDelete( true );
@@ -227,7 +227,7 @@ void KNotification::notifyByPassivePopup(const QPixmap &pix )
}
-void KNotification::slotPopupLinkClicked(const QString &adr)
+void KNotification::slotPopupLinkClicked(const TQString &adr)
{
m_linkClicked = true;
unsigned int action=adr.toUInt();
@@ -236,7 +236,7 @@ void KNotification::slotPopupLinkClicked(const QString &adr)
activate(action);
- // since we've hidden the message (KNotification::notifyByPassivePopup(const QPixmap &pix ))
+ // since we've hidden the message (KNotification::notifyByPassivePopup(const TQPixmap &pix ))
// we must now schedule overselves for deletion
close();
}
@@ -274,7 +274,7 @@ void KNotification::raiseWidget()
}
-void KNotification::raiseWidget(QWidget *w)
+void KNotification::raiseWidget(TQWidget *w)
{
//TODO this funciton is far from finished.
if(w->isTopLevel())
@@ -284,10 +284,10 @@ void KNotification::raiseWidget(QWidget *w)
}
else
{
- QWidget *pw=w->parentWidget();
+ TQWidget *pw=w->parentWidget();
raiseWidget(pw);
- if( QTabWidget *tab_widget=dynamic_cast(pw))
+ if( TQTabWidget *tab_widget=dynamic_cast(pw))
{
tab_widget->showPage(w);
}
@@ -298,9 +298,9 @@ void KNotification::raiseWidget(QWidget *w)
-KNotification *KNotification::event( const QString& message , const QString& text,
- const QPixmap& pixmap, QWidget *widget,
- const QStringList &actions, unsigned int flags)
+KNotification *KNotification::event( const TQString& message , const TQString& text,
+ const TQPixmap& pixmap, TQWidget *widget,
+ const TQStringList &actions, unsigned int flags)
{
/* NOTE: this function still use the KNotifyClient,
* in the future (KDE4) all the function of the knotifyclient will be moved there.
@@ -308,15 +308,15 @@ KNotification *KNotification::event( const QString& message , const QString& tex
*/
int level=KNotifyClient::Default;
- QString sound;
- QString file;
- QString commandline;
+ TQString sound;
+ TQString file;
+ TQString commandline;
// get config file
- KConfig eventsFile( QString::fromAscii( KNotifyClient::instance()->instanceName()+"/eventsrc" ), true, false, "data");
+ KConfig eventsFile( TQString::fromAscii( KNotifyClient::instance()->instanceName()+"/eventsrc" ), true, false, "data");
eventsFile.setGroup(message);
- KConfig configFile( QString::fromAscii( KNotifyClient::instance()->instanceName()+".eventsrc" ), true, false);
+ KConfig configFile( TQString::fromAscii( KNotifyClient::instance()->instanceName()+".eventsrc" ), true, false);
configFile.setGroup(message);
int present=KNotifyClient::getPresentation(message);
@@ -327,7 +327,7 @@ KNotification *KNotification::event( const QString& message , const QString& tex
// get sound file name
if( present & KNotifyClient::Sound ) {
- QString theSound = configFile.readPathEntry( "soundfile" );
+ TQString theSound = configFile.readPathEntry( "soundfile" );
if ( theSound.isEmpty() )
theSound = eventsFile.readPathEntry( "default_sound" );
if ( !theSound.isEmpty() )
@@ -336,7 +336,7 @@ KNotification *KNotification::event( const QString& message , const QString& tex
// get log file name
if( present & KNotifyClient::Logfile ) {
- QString theFile = configFile.readPathEntry( "logfile" );
+ TQString theFile = configFile.readPathEntry( "logfile" );
if ( theFile.isEmpty() )
theFile = eventsFile.readPathEntry( "default_logfile" );
if ( !theFile.isEmpty() )
@@ -357,9 +357,9 @@ KNotification *KNotification::event( const QString& message , const QString& tex
return userEvent( text, pixmap, widget, actions, present , level, sound, file, commandline, flags );
}
-KNotification *KNotification::userEvent( const QString& text, const QPixmap& pixmap, QWidget *widget,
- QStringList actions,int present, int level, const QString &sound, const QString &file,
- const QString &commandline, unsigned int flags)
+KNotification *KNotification::userEvent( const TQString& text, const TQPixmap& pixmap, TQWidget *widget,
+ TQStringList actions,int present, int level, const TQString &sound, const TQString &file,
+ const TQString &commandline, unsigned int flags)
{
/* NOTE: this function still use the KNotifyClient,
@@ -391,17 +391,17 @@ KNotification *KNotification::userEvent( const QString& text, const QPixmap& pix
}
if ( present & KNotifyClient::Messagebox )
{
- QTimer::singleShot(0,notify,SLOT(notifyByMessagebox()));
+ TQTimer::singleShot(0,notify,TQT_SLOT(notifyByMessagebox()));
}
else //not a message box (because closing the event when a message box is there is suicide)
if(flags & CloseOnTimeout)
{
- QTimer::singleShot(6*1000, notify, SLOT(close()));
+ TQTimer::singleShot(6*1000, notify, TQT_SLOT(close()));
}
if ( present & KNotifyClient::Execute )
{
- QString appname = QString::fromAscii( KNotifyClient::instance()->instanceName() );
- notify->notifyByExecute(commandline, QString::null,appname,text, winId, 0 );
+ TQString appname = TQString::fromAscii( KNotifyClient::instance()->instanceName() );
+ notify->notifyByExecute(commandline, TQString::null,appname,text, winId, 0 );
}
return notify;
@@ -422,10 +422,10 @@ KNotification *KNotification::userEvent( const QString& text, const QPixmap& pix
#include "kopetenotifyevent.h"
#include "kopetemetacontact.h"
#include "kopeteuiglobal.h"
-#include
+#include
-static KNotification *performCustomNotifications( QWidget *widget, Kopete::MetaContact * mc, const QString &message, bool& suppress)
+static KNotification *performCustomNotifications( TQWidget *widget, Kopete::MetaContact * mc, const TQString &message, bool& suppress)
{
KNotification *n=0L;
//kdDebug( 14010 ) << k_funcinfo << endl;
@@ -445,8 +445,8 @@ static KNotification *performCustomNotifications( QWidget *widget, Kopete::MetaC
bool checkingMetaContact = true;
Kopete::NotifyDataObject * dataObj = mc;
do {
- QString sound;
- QString text;
+ TQString sound;
+ TQString text;
if ( dataObj )
{
@@ -479,7 +479,7 @@ static KNotification *performCustomNotifications( QWidget *widget, Kopete::MetaC
evt->firePresentation( Kopete::EventPresentation::Chat );
}
// fire the event
- n=KNotification::userEvent( text, mc->photo(), widget, QStringList() , present, 0, sound, QString::null, QString::null , KNotification::CloseOnTimeout);
+ n=KNotification::userEvent( text, mc->photo(), widget, TQStringList() , present, 0, sound, TQString::null, TQString::null , KNotification::CloseOnTimeout);
}
}
@@ -502,9 +502,9 @@ static KNotification *performCustomNotifications( QWidget *widget, Kopete::MetaC
-KNotification *KNotification::event( Kopete::MetaContact *mc, const QString& message ,
- const QString& text, const QPixmap& pixmap, QWidget *widget,
- const QStringList &actions, unsigned int flags)
+KNotification *KNotification::event( Kopete::MetaContact *mc, const TQString& message ,
+ const TQString& text, const TQPixmap& pixmap, TQWidget *widget,
+ const TQStringList &actions, unsigned int flags)
{
if (message.isEmpty()) return 0;
diff --git a/kopete/libkopete/knotification.h b/kopete/libkopete/knotification.h
index 83752f2f..a99f70d2 100644
--- a/kopete/libkopete/knotification.h
+++ b/kopete/libkopete/knotification.h
@@ -21,9 +21,9 @@
#define KNOTIFICATION_H
-#include
-#include
-#include
+#include
+#include
+#include
#include "kopete_export.h"
class QWidget;
@@ -91,7 +91,7 @@ public:
* When the notification is activated, the widget might be raised.
* Depending of the configuration, the taskbar entry of the window containing the widget may blink.
*/
- QWidget *widget();
+ TQWidget *widget();
signals:
/**
@@ -139,21 +139,21 @@ public slots:
private:
struct Private;
Private *d;
- KNotification(QObject *parent=0L);
+ KNotification(TQObject *parent=0L);
/**
* recursive function that raise the widget. @p w
*
* @see raiseWidget()
*/
- static void raiseWidget(QWidget *w);
+ static void raiseWidget(TQWidget *w);
bool m_linkClicked;
private slots:
void notifyByMessagebox();
- void notifyByPassivePopup(const QPixmap &pix);
- void notifyByExecute(const QString &command, const QString& event,const QString& fromApp, const QString& text, int winId, int eventId);
- void slotPopupLinkClicked(const QString &);
+ void notifyByPassivePopup(const TQPixmap &pix);
+ void notifyByExecute(const TQString &command, const TQString& event,const TQString& fromApp, const TQString& text, int winId, int eventId);
+ void slotPopupLinkClicked(const TQString &);
public:
@@ -168,7 +168,7 @@ public:
* Make sure you use one of the CloseOnTimeOut or CloseWhenWidgetActivated, if not,
* you have to close yourself the notification.
*
- * @note the text is shown in a QLabel, you should make sure to escape the html is needed.
+ * @note the text is shown in a TQLabel, you should make sure to escape the html is needed.
*
* @param eventId is the name of the event
* @param text is the text of the notification to show in the popup.
@@ -177,9 +177,9 @@ public:
* @param actions is a list of action texts.
* @param flags is a bitmask of NotificationsFlags
*/
- static KNotification *event( const QString& eventId , const QString& text=QString::null,
- const QPixmap& pixmap=QPixmap(), QWidget *widget=0L,
- const QStringList &actions=QStringList(), unsigned int flags=CloseOnTimeout);
+ static KNotification *event( const TQString& eventId , const TQString& text=TQString::null,
+ const TQPixmap& pixmap=TQPixmap(), TQWidget *widget=0L,
+ const TQStringList &actions=TQStringList(), unsigned int flags=CloseOnTimeout);
/**
@@ -196,19 +196,19 @@ public:
* @param commandLine the command line to run if selected with @p parent
* @param flags Indicates the way in which the notification should be handled
*/
- static KNotification *userEvent( const QString& text, const QPixmap& pixmap,
- QWidget *widget, QStringList actions,int present, int level,
- const QString &sound, const QString &file,
- const QString &commandLine, unsigned int flags);
+ static KNotification *userEvent( const TQString& text, const TQPixmap& pixmap,
+ TQWidget *widget, TQStringList actions,int present, int level,
+ const TQString &sound, const TQString &file,
+ const TQString &commandLine, unsigned int flags);
/**
* @todo find a proper way to do context-dependent notifications
*/
- static KNotification *event( Kopete::MetaContact *mc, const QString& eventId , const QString& text=QString::null,
- const QPixmap& pixmap=QPixmap(), QWidget *widget=0L,
- const QStringList &actions=QStringList(),unsigned int flags=CloseOnTimeout);
+ static KNotification *event( Kopete::MetaContact *mc, const TQString& eventId , const TQString& text=TQString::null,
+ const TQPixmap& pixmap=TQPixmap(), TQWidget *widget=0L,
+ const TQStringList &actions=TQStringList(),unsigned int flags=CloseOnTimeout);
};
diff --git a/kopete/libkopete/kopeteaccount.cpp b/kopete/libkopete/kopeteaccount.cpp
index 52bb26bc..acce1da1 100644
--- a/kopete/libkopete/kopeteaccount.cpp
+++ b/kopete/libkopete/kopeteaccount.cpp
@@ -16,8 +16,8 @@
*************************************************************************
*/
-#include
-#include
+#include
+#include
#include
#include
@@ -54,7 +54,7 @@ namespace Kopete
class Account::Private
{
public:
- Private( Protocol *protocol, const QString &accountId )
+ Private( Protocol *protocol, const TQString &accountId )
: protocol( protocol ), id( accountId )
, excludeconnect( true ), priority( 0 ), myself( 0 )
, suppressStatusTimer( 0 ), suppressStatusNotification( false )
@@ -66,38 +66,38 @@ public:
~Private() { delete blackList; }
Protocol *protocol;
- QString id;
- QString accountLabel;
+ TQString id;
+ TQString accountLabel;
bool excludeconnect;
uint priority;
- QDict contacts;
- QColor color;
+ TQDict contacts;
+ TQColor color;
Contact *myself;
- QTimer suppressStatusTimer;
+ TQTimer suppressStatusTimer;
bool suppressStatusNotification;
Kopete::BlackLister *blackList;
KConfigGroup *configGroup;
uint connectionTry;
- QString customIcon;
+ TQString customIcon;
Kopete::OnlineStatus restoreStatus;
- QString restoreMessage;
+ TQString restoreMessage;
};
-Account::Account( Protocol *parent, const QString &accountId, const char *name )
- : QObject( parent, name ), d( new Private( parent, accountId ) )
+Account::Account( Protocol *parent, const TQString &accountId, const char *name )
+ : TQObject( parent, name ), d( new Private( parent, accountId ) )
{
- d->configGroup=new KConfigGroup(KGlobal::config(), QString::fromLatin1( "Account_%1_%2" ).arg( d->protocol->pluginId(), d->id ));
+ d->configGroup=new KConfigGroup(KGlobal::config(), TQString::fromLatin1( "Account_%1_%2" ).arg( d->protocol->pluginId(), d->id ));
d->excludeconnect = d->configGroup->readBoolEntry( "ExcludeConnect", false );
d->color = d->configGroup->readColorEntry( "Color", &d->color );
- d->customIcon = d->configGroup->readEntry( "Icon", QString() );
+ d->customIcon = d->configGroup->readEntry( "Icon", TQString() );
d->priority = d->configGroup->readNumEntry( "Priority", 0 );
d->restoreStatus = Kopete::OnlineStatus::Online;
d->restoreMessage = "";
- QObject::connect( &d->suppressStatusTimer, SIGNAL( timeout() ),
- this, SLOT( slotStopSuppression() ) );
+ TQObject::connect( &d->suppressStatusTimer, TQT_SIGNAL( timeout() ),
+ this, TQT_SLOT( slotStopSuppression() ) );
}
Account::~Account()
@@ -106,7 +106,7 @@ Account::~Account()
// Delete all registered child contacts first
while ( !d->contacts.isEmpty() )
- delete *QDictIterator( d->contacts );
+ delete *TQDictIterator( d->contacts );
kdDebug( 14010 ) << k_funcinfo << " account '" << d->id << "' about to emit accountDestroyed " << endl;
emit accountDestroyed(this);
@@ -128,14 +128,14 @@ void Account::disconnected( DisconnectReason reason )
//reconnect if needed
if(reason == BadPassword )
{
- QTimer::singleShot(0, this, SLOT(reconnect()));
+ TQTimer::singleShot(0, this, TQT_SLOT(reconnect()));
}
else if ( KopetePrefs::prefs()->reconnectOnDisconnect() == true && reason > Manual )
{
d->connectionTry++;
//use a timer to allow the plugins to clean up after return
if(d->connectionTry < 3)
- QTimer::singleShot(10000, this, SLOT(reconnect())); // wait 10 seconds before reconnect
+ TQTimer::singleShot(10000, this, TQT_SLOT(reconnect())); // wait 10 seconds before reconnect
}
if(reason== OtherClient)
{
@@ -148,17 +148,17 @@ Protocol *Account::protocol() const
return d->protocol;
}
-QString Account::accountId() const
+TQString Account::accountId() const
{
return d->id;
}
-const QColor Account::color() const
+const TQColor Account::color() const
{
return d->color;
}
-void Account::setColor( const QColor &color )
+void Account::setColor( const TQColor &color )
{
d->color = color;
if ( d->color.isValid() )
@@ -180,12 +180,12 @@ uint Account::priority() const
}
-QPixmap Account::accountIcon(const int size) const
+TQPixmap Account::accountIcon(const int size) const
{
- QString icon= d->customIcon.isEmpty() ? d->protocol->pluginIcon() : d->customIcon;
+ TQString icon= d->customIcon.isEmpty() ? d->protocol->pluginIcon() : d->customIcon;
// FIXME: this code is duplicated with OnlineStatus, can we merge it somehow?
- QPixmap base = KGlobal::instance()->iconLoader()->loadIcon(
+ TQPixmap base = KGlobal::instance()->iconLoader()->loadIcon(
icon, KIcon::Small, size );
if ( d->color.isValid() )
@@ -196,7 +196,7 @@ QPixmap Account::accountIcon(const int size) const
if ( size > 0 && base.width() != size )
{
- base = QPixmap( base.convertToImage().smoothScale( size, size ) );
+ base = TQPixmap( base.convertToImage().smoothScale( size, size ) );
}
return base;
@@ -207,12 +207,12 @@ KConfigGroup* Kopete::Account::configGroup() const
return d->configGroup;
}
-void Account::setAccountLabel( const QString &label )
+void Account::setAccountLabel( const TQString &label )
{
d->accountLabel = label;
}
-QString Account::accountLabel() const
+TQString Account::accountLabel() const
{
if( d->accountLabel.isNull() )
return d->id;
@@ -233,8 +233,8 @@ bool Account::excludeConnect() const
void Account::registerContact( Contact *c )
{
d->contacts.insert( c->contactId(), c );
- QObject::connect( c, SIGNAL( contactDestroyed( Kopete::Contact * ) ),
- SLOT( contactDestroyed( Kopete::Contact * ) ) );
+ TQObject::connect( c, TQT_SIGNAL( contactDestroyed( Kopete::Contact * ) ),
+ TQT_SLOT( contactDestroyed( Kopete::Contact * ) ) );
}
void Account::contactDestroyed( Contact *c )
@@ -243,13 +243,13 @@ void Account::contactDestroyed( Contact *c )
}
-const QDict& Account::contacts()
+const TQDict& Account::contacts()
{
return d->contacts;
}
-Kopete::MetaContact* Account::addContact( const QString &contactId, const QString &displayName , Group *group, AddMode mode )
+Kopete::MetaContact* Account::addContact( const TQString &contactId, const TQString &displayName , Group *group, AddMode mode )
{
if ( contactId == d->myself->contactId() )
@@ -316,7 +316,7 @@ Kopete::MetaContact* Account::addContact( const QString &contactId, const QStrin
return parentContact;
}
-bool Account::addContact(const QString &contactId , MetaContact *parent, AddMode mode )
+bool Account::addContact(const TQString &contactId , MetaContact *parent, AddMode mode )
{
if ( contactId == myself()->contactId() )
{
@@ -362,7 +362,7 @@ KActionMenu * Account::actionMenu()
{
//default implementation
KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
- QString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
+ TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).arg( accountLabel(), nick )
@@ -370,7 +370,7 @@ KActionMenu * Account::actionMenu()
OnlineStatusManager::self()->createAccountStatusActions(this, menu);
menu->popupMenu()->insertSeparator();
- menu->insert( new KAction ( i18n( "Properties" ), 0, this, SLOT( editAccount() ), menu, "actionAccountProperties" ) );
+ menu->insert( new KAction ( i18n( "Properties" ), 0, this, TQT_SLOT( editAccount() ), menu, "actionAccountProperties" ) );
return menu;
}
@@ -397,20 +397,20 @@ void Account::setMyself( Contact *myself )
if ( d->myself )
{
- QObject::disconnect( d->myself, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
- QObject::disconnect( d->myself, SIGNAL( propertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ),
- this, SLOT( slotContactPropertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ) );
+ TQObject::disconnect( d->myself, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
+ TQObject::disconnect( d->myself, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ),
+ this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) );
}
d->myself = myself;
// d->contacts.remove( myself->contactId() );
- QObject::connect( d->myself, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
- QObject::connect( d->myself, SIGNAL( propertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ),
- this, SLOT( slotContactPropertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ) );
+ TQObject::connect( d->myself, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
+ TQObject::connect( d->myself, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ),
+ this, TQT_SLOT( slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) );
if ( isConnected() != wasConnected )
emit isConnectedChanged();
@@ -454,15 +454,15 @@ void Account::setAllContactsStatus( const Kopete::OnlineStatus &status )
d->suppressStatusNotification = true;
d->suppressStatusTimer.start( 5000, true );
- for ( QDictIterator it( d->contacts ); it.current(); ++it )
+ for ( TQDictIterator it( d->contacts ); it.current(); ++it )
if ( it.current() != d->myself )
it.current()->setOnlineStatus( status );
}
void Account::slotContactPropertyChanged( Contact * /* contact */,
- const QString &key, const QVariant &old, const QVariant &newVal )
+ const TQString &key, const TQVariant &old, const TQVariant &newVal )
{
- if ( key == QString::fromLatin1("awayMessage") && old != newVal && isConnected() )
+ if ( key == TQString::fromLatin1("awayMessage") && old != newVal && isConnected() )
{
d->restoreMessage = newVal.toString();
// kdDebug( 14010 ) << k_funcinfo << "account " << d->id << " restoreMessage " << d->restoreMessage << endl;
@@ -493,22 +493,22 @@ BlackLister* Account::blackLister()
return d->blackList;
}
-void Account::block( const QString &contactId )
+void Account::block( const TQString &contactId )
{
d->blackList->addContact( contactId );
}
-void Account::unblock( const QString &contactId )
+void Account::unblock( const TQString &contactId )
{
d->blackList->removeContact( contactId );
}
-bool Account::isBlocked( const QString &contactId )
+bool Account::isBlocked( const TQString &contactId )
{
return d->blackList->isBlocked( contactId );
}
-void Account::editAccount(QWidget *parent)
+void Account::editAccount(TQWidget *parent)
{
KDialogBase *editDialog = new KDialogBase( parent, "KopeteAccountConfig::editDialog", true,
i18n( "Edit Account" ), KDialogBase::Ok | KDialogBase::Cancel,
@@ -521,15 +521,15 @@ void Account::editAccount(QWidget *parent)
// FIXME: Why the #### is EditAccountWidget not a QWidget?!? This sideways casting
// is braindead and error-prone. Looking at MSN the only reason I can see is
// because it allows direct subclassing of designer widgets. But what is
- // wrong with embedding the designer widget in an empty QWidget instead?
+ // wrong with embedding the designer widget in an empty TQWidget instead?
// Also, if this REALLY has to be a pure class and not a widget, then the
// class should at least be renamed to EditAccountIface instead - Martijn
- QWidget *w = dynamic_cast( m_accountWidget );
+ TQWidget *w = dynamic_cast( m_accountWidget );
if ( !w )
return;
editDialog->setMainWidget( w );
- if ( editDialog->exec() == QDialog::Accepted )
+ if ( editDialog->exec() == TQDialog::Accepted )
{
if( m_accountWidget->validateData() )
m_accountWidget->apply();
@@ -538,22 +538,22 @@ void Account::editAccount(QWidget *parent)
editDialog->deleteLater();
}
-void Account::setPluginData( Plugin* /*plugin*/, const QString &key, const QString &value )
+void Account::setPluginData( Plugin* /*plugin*/, const TQString &key, const TQString &value )
{
configGroup()->writeEntry(key,value);
}
-QString Account::pluginData( Plugin* /*plugin*/, const QString &key ) const
+TQString Account::pluginData( Plugin* /*plugin*/, const TQString &key ) const
{
return configGroup()->readEntry(key);
}
-void Account::setAway(bool away, const QString& reason)
+void Account::setAway(bool away, const TQString& reason)
{
setOnlineStatus( OnlineStatusManager::self()->onlineStatus(protocol() , away ? OnlineStatusManager::Away : OnlineStatusManager::Online) , reason );
}
-void Account::setCustomIcon( const QString & i)
+void Account::setCustomIcon( const TQString & i)
{
d->customIcon = i;
if(!i.isEmpty())
@@ -563,7 +563,7 @@ void Account::setCustomIcon( const QString & i)
emit colorChanged( color() );
}
-QString Account::customIcon() const
+TQString Account::customIcon() const
{
return d->customIcon;
}
diff --git a/kopete/libkopete/kopeteaccount.h b/kopete/libkopete/kopeteaccount.h
index f3c2d338..4e905d31 100644
--- a/kopete/libkopete/kopeteaccount.h
+++ b/kopete/libkopete/kopeteaccount.h
@@ -23,8 +23,8 @@
#include "kopete_export.h"
-#include
-#include
+#include
+#include
class QDomNode;
class KActionMenu;
@@ -68,10 +68,10 @@ class KOPETE_EXPORT Account : public QObject
Q_OBJECT
Q_ENUMS( AddMode )
- Q_PROPERTY( QString accountId READ accountId )
+ Q_PROPERTY( TQString accountId READ accountId )
Q_PROPERTY( bool excludeConnect READ excludeConnect WRITE setExcludeConnect )
- Q_PROPERTY( QColor color READ color WRITE setColor )
- Q_PROPERTY( QPixmap accountIcon READ accountIcon )
+ Q_PROPERTY( TQColor color READ color WRITE setColor )
+ Q_PROPERTY( TQPixmap accountIcon READ accountIcon )
Q_PROPERTY( bool isConnected READ isConnected )
Q_PROPERTY( bool isAway READ isAway )
Q_PROPERTY( bool suppressStatusNotification READ suppressStatusNotification )
@@ -100,9 +100,9 @@ public:
* @param parent the protocol for this account. The account is a child object of the
* protocol, so it will be automatically deleted when the protocol is.
* @param accountID the unique ID of this account.
- * @param name the name of this QObject.
+ * @param name the name of this TQObject.
*/
- Account(Protocol *parent, const QString &accountID, const char *name=0L);
+ Account(Protocol *parent, const TQString &accountID, const char *name=0L);
~Account();
/**
@@ -113,12 +113,12 @@ public:
/**
* \return the unique ID of this account used as the login
*/
- QString accountId() const;
+ TQString accountId() const;
/**
* \return The label of this account, for the GUI
*/
- QString accountLabel() const;
+ TQString accountLabel() const;
/**
* \brief Get the priority of this account.
@@ -157,7 +157,7 @@ public:
*
* \return the user color for this account
*/
- const QColor color() const;
+ const TQColor color() const;
/**
* \brief Set the color for this account.
@@ -166,7 +166,7 @@ public:
*
* @sa @ref color()
*/
- void setColor( const QColor &color);
+ void setColor( const TQColor &color);
/**
* \brief Get the icon for this account.
@@ -176,23 +176,23 @@ public:
* @param size the size of the icon. If the size is 0, the default size is used.
* @return the icon for this account, colored if needed
*/
- QPixmap accountIcon( const int size = 0 ) const;
+ TQPixmap accountIcon( const int size = 0 ) const;
/**
* \brief change the account icon.
* by default the icon of an account is the protocol one, but it may be overide it.
- * Set QString::null to go back to the default (the protocol icon)
+ * Set TQString::null to go back to the default (the protocol icon)
*
* this call will emit colorChanged()
*/
- void setCustomIcon( const QString& );
+ void setCustomIcon( const TQString& );
/**
* \brief return the icon base
* This is the custom account icon set with setIcon. if this icon is null, then the protocol icon is used
* don't use this funciton to get the icon that need to be displayed, use accountIcon
*/
- QString customIcon() const;
+ TQString customIcon() const;
@@ -229,7 +229,7 @@ public:
* so you can safely use static_cast to your own derived contact class
* if needed.
*/
- const QDict& contacts();
+ const TQDict& contacts();
/**
* Indicates whether or not we should suppress status notifications
@@ -264,13 +264,13 @@ public:
* If @p mode is @c DontChangeKABC, no additional action is carried out.
*
* @param contactId the @ref Contact::contactId of the contact to create
- * @param displayName the displayname (alias) of the new metacontact. Leave as QString::null if
+ * @param displayName the displayname (alias) of the new metacontact. Leave as TQString::null if
* no alias is known, then by default, the nick will be taken as alias and tracked if changed.
* @param group the group to add the created metacontact to, or 0 for the top-level group.
* @param mode the mode used to add the contact. Use DontChangeKABC when deserializing.
* @return the new created metacontact or 0L if the operation failed
*/
- MetaContact* addContact( const QString &contactId, const QString &displayName = QString::null, Group *group = 0, AddMode mode = DontChangeKABC ) ;
+ MetaContact* addContact( const TQString &contactId, const TQString &displayName = TQString::null, Group *group = 0, AddMode mode = DontChangeKABC ) ;
/**
* @brief Create a new contact, adding it to an existing metacontact
@@ -280,12 +280,12 @@ public:
*
* @param contactId the @ref Contact::contactId of the contact to create
* @param parent the parent metacontact (must not be 0)
- * @param mode the mode used to add the contact. See addContact(const QString&,const QString&,Group*,AddMode) for details.
+ * @param mode the mode used to add the contact. See addContact(const TQString&,const TQString&,Group*,AddMode) for details.
*
* @return @c true if creation of the contact succeeded or the contact was already in the list,
* @c false otherwise.
*/
- bool addContact( const QString &contactId, MetaContact *parent, AddMode mode = DontChangeKABC );
+ bool addContact( const TQString &contactId, MetaContact *parent, AddMode mode = DontChangeKABC );
/**
* @brief Indicate whether the account is connected at all.
@@ -338,7 +338,7 @@ public:
/**
* \return @c true if the contact with ID @p contactId is in the blacklist, @c false otherwise.
*/
- virtual bool isBlocked( const QString &contactId );
+ virtual bool isBlocked( const TQString &contactId );
protected:
/**
@@ -372,7 +372,7 @@ protected:
* @param parentContact the metacontact to add this contact to
* @return @c true if creating the contact succeeded, @c false on failure.
*/
- virtual bool createContact( const QString &contactId, MetaContact *parentContact ) =0;
+ virtual bool createContact( const TQString &contactId, MetaContact *parentContact ) =0;
/**
@@ -380,7 +380,7 @@ protected:
*
* @param label The label to set
*/
- void setAccountLabel( const QString &label );
+ void setAccountLabel( const TQString &label );
protected slots:
/**
@@ -417,7 +417,7 @@ signals:
* also emited when the icon change
* @todo probably rename to accountIconChanged
*/
- void colorChanged( const QColor & );
+ void colorChanged( const TQColor & );
/**
* Emitted when the account is deleted.
@@ -470,7 +470,7 @@ public slots:
*
* @todo change ; make use of setOnlineStatus
*/
- virtual void setAway( bool away, const QString &reason = QString::null );
+ virtual void setAway( bool away, const TQString &reason = TQString::null );
/**
* Reimplement this function to set the online status
@@ -478,12 +478,12 @@ public slots:
* @param reason is the away message to set.
* @note If needed, you need to connect. if the offline status is given, you should disconnect
*/
- virtual void setOnlineStatus( const Kopete::OnlineStatus& status , const QString &reason = QString::null ) = 0;
+ virtual void setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason = TQString::null ) = 0;
/**
* Display the edit account widget for the account
*/
- void editAccount( QWidget* parent = 0L );
+ void editAccount( TQWidget* parent = 0L );
/**
* Add a user to the blacklist. The default implementation calls
@@ -491,7 +491,7 @@ public slots:
*
* @param contactId the contact to be added to the blacklist
*/
- virtual void block( const QString &contactId );
+ virtual void block( const TQString &contactId );
/**
* Remove a user from the blacklist. The default implementation calls
@@ -499,7 +499,7 @@ public slots:
*
* @param contactId the contact to be removed from the blacklist
*/
- virtual void unblock( const QString &contactId );
+ virtual void unblock( const TQString &contactId );
private slots:
/**
@@ -520,7 +520,7 @@ private slots:
/**
* The @ref myself() contact's property changed.
*/
- void slotContactPropertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & );
+ void slotContactPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & );
/**
* Stop the suppression of status notification (connected to a timer)
@@ -539,13 +539,13 @@ public:
* @todo remove
* @deprecated use configGroup
*/
- void setPluginData( Plugin* /*plugin*/, const QString &key, const QString &value ) KDE_DEPRECATED;
+ void setPluginData( Plugin* /*plugin*/, const TQString &key, const TQString &value ) KDE_DEPRECATED;
/**
* @todo remove
* @deprecated use configGroup
*/
- QString pluginData( Plugin* /*plugin*/, const QString &key ) const KDE_DEPRECATED;
+ TQString pluginData( Plugin* /*plugin*/, const TQString &key ) const KDE_DEPRECATED;
};
} //END namespace Kopete
diff --git a/kopete/libkopete/kopeteaccountmanager.cpp b/kopete/libkopete/kopeteaccountmanager.cpp
index b00f080e..d12aa7ce 100644
--- a/kopete/libkopete/kopeteaccountmanager.cpp
+++ b/kopete/libkopete/kopeteaccountmanager.cpp
@@ -18,9 +18,9 @@
#include "kopeteaccountmanager.h"
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include
@@ -44,7 +44,7 @@ class AccountManager::Private
{
public:
- class AccountPtrList : public QPtrList
+ class AccountPtrList : public TQPtrList
{
protected:
int compareItems( AccountPtrList::Item a, AccountPtrList::Item b )
@@ -75,7 +75,7 @@ AccountManager * AccountManager::self()
AccountManager::AccountManager()
-: QObject( qApp, "KopeteAccountManager" )
+: TQObject( qApp, "KopeteAccountManager" )
{
d = new Private;
}
@@ -90,7 +90,7 @@ AccountManager::~AccountManager()
bool AccountManager::isAnyAccountConnected()
{
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if(it.current()->isConnected())
return true;
@@ -100,17 +100,17 @@ bool AccountManager::isAnyAccountConnected()
void AccountManager::connectAll()
{
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
if(!it.current()->excludeConnect())
it.current()->connect();
}
-void AccountManager::setAvailableAll( const QString &awayReason )
+void AccountManager::setAvailableAll( const TQString &awayReason )
{
Away::setGlobalAway( false );
bool anyConnected = isAnyAccountConnected();
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if ( anyConnected )
{
@@ -125,16 +125,16 @@ void AccountManager::setAvailableAll( const QString &awayReason )
void AccountManager::disconnectAll()
{
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
it.current()->disconnect();
}
-void AccountManager::setAwayAll( const QString &awayReason, bool away )
+void AccountManager::setAwayAll( const TQString &awayReason, bool away )
{
Away::setGlobalAway( true );
bool anyConnected = isAnyAccountConnected();
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
// FIXME: ICQ's invisible online should be set to invisible away
Contact *self = it.current()->myself();
@@ -152,12 +152,12 @@ void AccountManager::setAwayAll( const QString &awayReason, bool away )
}
}
-void AccountManager::setOnlineStatus( uint category , const QString& awayMessage, uint flags )
+void AccountManager::setOnlineStatus( uint category , const TQString& awayMessage, uint flags )
{
OnlineStatusManager::Categories katgor=(OnlineStatusManager::Categories)category;
bool anyConnected = isAnyAccountConnected();
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
Account *account = it.current();
Kopete::OnlineStatus status = OnlineStatusManager::self()->onlineStatus(account->protocol() , katgor);
@@ -175,25 +175,25 @@ void AccountManager::setOnlineStatus( uint category , const QString& awayMessage
}
-QColor AccountManager::guessColor( Protocol *protocol ) const
+TQColor AccountManager::guessColor( Protocol *protocol ) const
{
// In a perfect wold, we should check if the color is actually not used by the account.
// Anyway, this is not really required, It would be a difficult job for about nothing more.
// -- Olivier
int protocolCount = 0;
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if ( it.current()->protocol()->pluginId() == protocol->pluginId() )
protocolCount++;
}
// let's figure a color
- QColor color;
+ TQColor color;
switch ( protocolCount % 7 )
{
case 0:
- color = QColor();
+ color = TQColor();
break;
case 1:
color = Qt::red;
@@ -230,7 +230,7 @@ Account* AccountManager::registerAccount( Account *account )
}
// If this account already exists, do nothing
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if ( ( account->protocol() == it.current()->protocol() ) && ( account->accountId() == it.current()->accountId() ) )
{
@@ -243,12 +243,12 @@ Account* AccountManager::registerAccount( Account *account )
d->accounts.sort();
// Connect to the account's status changed signal
- connect(account->myself(), SIGNAL(onlineStatusChanged(Kopete::Contact *,
+ connect(account->myself(), TQT_SIGNAL(onlineStatusChanged(Kopete::Contact *,
const Kopete::OnlineStatus &, const Kopete::OnlineStatus &)),
- this, SLOT(slotAccountOnlineStatusChanged(Kopete::Contact *,
+ this, TQT_SLOT(slotAccountOnlineStatusChanged(Kopete::Contact *,
const Kopete::OnlineStatus &, const Kopete::OnlineStatus &)));
- connect(account, SIGNAL(accountDestroyed(const Kopete::Account *)) , this, SLOT( unregisterAccount(const Kopete::Account *) ));
+ connect(account, TQT_SIGNAL(accountDestroyed(const Kopete::Account *)) , this, TQT_SLOT( unregisterAccount(const Kopete::Account *) ));
emit accountRegistered( account );
return account;
@@ -261,15 +261,15 @@ void AccountManager::unregisterAccount( const Account *account )
emit accountUnregistered( account );
}
-const QPtrList& AccountManager::accounts() const
+const TQPtrList& AccountManager::accounts() const
{
return d->accounts;
}
-QDict AccountManager::accounts( const Protocol *protocol ) const
+TQDict AccountManager::accounts( const Protocol *protocol ) const
{
- QDict dict;
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ TQDict dict;
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if ( it.current()->protocol() == protocol && !it.current()->accountId().isNull() )
dict.insert( it.current()->accountId(), it.current() );
@@ -278,9 +278,9 @@ QDict AccountManager::accounts( const Protocol *protocol ) const
return dict;
}
-Account * AccountManager::findAccount( const QString &protocolId, const QString &accountId )
+Account * AccountManager::findAccount( const TQString &protocolId, const TQString &accountId )
{
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
if ( it.current()->protocol()->pluginId() == protocolId && it.current()->accountId() == accountId )
return it.current();
@@ -299,7 +299,7 @@ void AccountManager::removeAccount( Account *account )
KConfigGroup *configgroup = account->configGroup();
// Clean up the contact list
- QDictIterator it( account->contacts() );
+ TQDictIterator it( account->contacts() );
for ( ; it.current(); ++it )
{
Contact* c = it.current();
@@ -312,7 +312,7 @@ void AccountManager::removeAccount( Account *account )
{
//get the first group and it's members
Group* group = mc->groups().first();
- QPtrList groupMembers = group->members();
+ TQPtrList groupMembers = group->members();
ContactList::self()->removeMetaContact( mc );
if ( groupMembers.count() == 1 && groupMembers.findRef( mc ) != -1 )
ContactList::self()->removeGroup( group );
@@ -332,7 +332,7 @@ void AccountManager::removeAccount( Account *account )
{
// FIXME: pluginId() should return the internal name and not the class name, so
// we can get rid of this hack - Olivier/Martijn
- QString protocolName = protocol->pluginId().remove( QString::fromLatin1( "Protocol" ) ).lower();
+ TQString protocolName = protocol->pluginId().remove( TQString::fromLatin1( "Protocol" ) ).lower();
PluginManager::self()->setPluginEnabled( protocolName, false );
PluginManager::self()->unloadPlugin( protocolName );
@@ -344,7 +344,7 @@ void AccountManager::save()
//kdDebug( 14010 ) << k_funcinfo << endl;
d->accounts.sort();
- for ( QPtrListIterator it( d->accounts ); it.current(); ++it )
+ for ( TQPtrListIterator it( d->accounts ); it.current(); ++it )
{
KConfigBase *config = it.current()->configGroup();
@@ -357,22 +357,22 @@ void AccountManager::save()
void AccountManager::load()
{
- connect( PluginManager::self(), SIGNAL( pluginLoaded( Kopete::Plugin * ) ),
- this, SLOT( slotPluginLoaded( Kopete::Plugin * ) ) );
+ connect( PluginManager::self(), TQT_SIGNAL( pluginLoaded( Kopete::Plugin * ) ),
+ this, TQT_SLOT( slotPluginLoaded( Kopete::Plugin * ) ) );
// Iterate over all groups that start with "Account_" as those are accounts
// and load the required protocols if the account is enabled.
// Don't try to optimize duplicate calls out, the plugin queue is smart enough
// (and fast enough) to handle that without adding complexity here
KConfig *config = KGlobal::config();
- QStringList accountGroups = config->groupList().grep( QRegExp( QString::fromLatin1( "^Account_" ) ) );
- for ( QStringList::Iterator it = accountGroups.begin(); it != accountGroups.end(); ++it )
+ TQStringList accountGroups = config->groupList().grep( TQRegExp( TQString::fromLatin1( "^Account_" ) ) );
+ for ( TQStringList::Iterator it = accountGroups.begin(); it != accountGroups.end(); ++it )
{
config->setGroup( *it );
- QString protocol = config->readEntry( "Protocol" );
- if ( protocol.endsWith( QString::fromLatin1( "Protocol" ) ) )
- protocol = QString::fromLatin1( "kopete_" ) + protocol.lower().remove( QString::fromLatin1( "protocol" ) );
+ TQString protocol = config->readEntry( "Protocol" );
+ if ( protocol.endsWith( TQString::fromLatin1( "Protocol" ) ) )
+ protocol = TQString::fromLatin1( "kopete_" ) + protocol.lower().remove( TQString::fromLatin1( "protocol" ) );
if ( config->readBoolEntry( "Enabled", true ) )
PluginManager::self()->loadPlugin( protocol, PluginManager::LoadAsync );
@@ -388,8 +388,8 @@ void AccountManager::slotPluginLoaded( Plugin *plugin )
// Iterate over all groups that start with "Account_" as those are accounts
// and parse them if they are from this protocol
KConfig *config = KGlobal::config();
- QStringList accountGroups = config->groupList().grep( QRegExp( QString::fromLatin1( "^Account_" ) ) );
- for ( QStringList::Iterator it = accountGroups.begin(); it != accountGroups.end(); ++it )
+ TQStringList accountGroups = config->groupList().grep( TQRegExp( TQString::fromLatin1( "^Account_" ) ) );
+ for ( TQStringList::Iterator it = accountGroups.begin(); it != accountGroups.end(); ++it )
{
config->setGroup( *it );
@@ -400,7 +400,7 @@ void AccountManager::slotPluginLoaded( Plugin *plugin )
if ( !config->readBoolEntry( "Enabled", true ) )
continue;
- QString accountId = config->readEntry( "AccountId" );
+ TQString accountId = config->readEntry( "AccountId" );
if ( accountId.isEmpty() )
{
kdWarning( 14010 ) << k_funcinfo <<
diff --git a/kopete/libkopete/kopeteaccountmanager.h b/kopete/libkopete/kopeteaccountmanager.h
index ed0c939a..75ebf667 100644
--- a/kopete/libkopete/kopeteaccountmanager.h
+++ b/kopete/libkopete/kopeteaccountmanager.h
@@ -19,9 +19,9 @@
#ifndef __kopeteaccountmanager_h__
#define __kopeteaccountmanager_h__
-#include
-#include
-#include
+#include
+#include
+#include
#include "kopete_export.h"
@@ -65,16 +65,16 @@ public:
* \brief Retrieve the list of accounts
* \return a list of all the accounts
*/
- const QPtrList & accounts() const;
+ const TQPtrList & accounts() const;
/**
- * \brief Retrieve a QDict of accounts for the given protocol
+ * \brief Retrieve a TQDict of accounts for the given protocol
*
* The list is guaranteed to contain only accounts for the specified
* protocol
* \param p is the Protocol object you want accounts for
*/
- QDict accounts( const Protocol *p ) const;
+ TQDict accounts( const Protocol *p ) const;
/**
* \brief Return the account asked
@@ -82,7 +82,7 @@ public:
* \param accountId is the ID for the account you want
* \return the Account object found or NULL if no account was found
*/
- Account* findAccount( const QString &protocolId, const QString &accountId );
+ Account* findAccount( const TQString &protocolId, const TQString &accountId );
/**
* \brief Delete the account and clean the config data
@@ -97,7 +97,7 @@ public:
* Guesses a color for the next account of a given protocol based on the already registered colors
* \return the color guessed for the account
*/
- QColor guessColor( Protocol *protocol ) const ;
+ TQColor guessColor( Protocol *protocol ) const ;
/**
* @brief Register the account.
@@ -142,7 +142,7 @@ public slots:
* @param flags is a bitmask of SetOnlineStatusFlag
*/
void setOnlineStatus( /*Kopete::OnlineStatusManager::Categories*/ uint category,
- const QString& awayMessage = QString::null, uint flags=0);
+ const TQString& awayMessage = TQString::null, uint flags=0);
/**
* \brief Set all accounts to away at once.
@@ -152,7 +152,7 @@ public slots:
* @param awayReason is the away message that will be set.
* @param away decides whether the message is away/non-away
*/
- void setAwayAll( const QString &awayReason = QString::null, bool away=true );
+ void setAwayAll( const TQString &awayReason = TQString::null, bool away=true );
/**
* \brief Connect or make available every account.
@@ -162,7 +162,7 @@ public slots:
* This is a slot, so you can connect directly to it from e.g. a KAction.
* @param awayReason is the away(status) message that will be set.
*/
- void setAvailableAll( const QString &awayReason = QString::null );
+ void setAvailableAll( const TQString &awayReason = TQString::null );
/**
* \internal
diff --git a/kopete/libkopete/kopeteaway.cpp b/kopete/libkopete/kopeteaway.cpp
index fa500e0c..1c920f31 100644
--- a/kopete/libkopete/kopeteaway.cpp
+++ b/kopete/libkopete/kopeteaway.cpp
@@ -30,7 +30,7 @@
#include "kopeteprefs.h"
#include
-#include
+#include
#include
#include
@@ -59,18 +59,18 @@
struct KopeteAwayPrivate
{
- QString awayMessage;
- QString autoAwayMessage;
+ TQString awayMessage;
+ TQString autoAwayMessage;
bool useAutoAwayMessage;
bool globalAway;
- QStringList awayMessageList;
- QTime idleTime;
- QTimer *timer;
+ TQStringList awayMessageList;
+ TQTime idleTime;
+ TQTimer *timer;
bool autoaway;
bool goAvailable;
int awayTimeout;
bool useAutoAway;
- QPtrList autoAwayAccounts;
+ TQPtrList autoAwayAccounts;
int mouse_x;
int mouse_y;
@@ -87,7 +87,7 @@ struct KopeteAwayPrivate
Kopete::Away *Kopete::Away::instance = 0L;
-Kopete::Away::Away() : QObject( kapp , "Kopete::Away")
+Kopete::Away::Away() : TQObject( kapp , "Kopete::Away")
{
int dummy = 0;
dummy = dummy; // shut up
@@ -95,8 +95,8 @@ Kopete::Away::Away() : QObject( kapp , "Kopete::Away")
d = new KopeteAwayPrivate;
// Set up the away messages
- d->awayMessage = QString::null;
- d->autoAwayMessage = QString::null;
+ d->awayMessage = TQString::null;
+ d->autoAwayMessage = TQString::null;
d->useAutoAwayMessage = false;
d->globalAway = false;
d->autoaway = false;
@@ -143,7 +143,7 @@ Kopete::Away::Away() : QObject( kapp , "Kopete::Away")
load();
- KSettings::Dispatcher::self()->registerInstance( KGlobal::instance(), this, SLOT( load() ) );
+ KSettings::Dispatcher::self()->registerInstance( KGlobal::instance(), this, TQT_SLOT( load() ) );
// Set up the config object
KConfig *config = KGlobal::config();
/* Load the saved away messages */
@@ -156,8 +156,8 @@ Kopete::Away::Away() : QObject( kapp , "Kopete::Away")
}
else if(config->hasKey("Titles")) // Old config format
{
- QStringList titles = config->readListEntry("Titles"); // Get the titles
- for(QStringList::iterator i = titles.begin(); i != titles.end(); ++i)
+ TQStringList titles = config->readListEntry("Titles"); // Get the titles
+ for(TQStringList::iterator i = titles.begin(); i != titles.end(); ++i)
{
d->awayMessageList.append( config->readEntry(*i) ); // And add it to the list
}
@@ -188,8 +188,8 @@ Kopete::Away::Away() : QObject( kapp , "Kopete::Away")
}
// init the timer
- d->timer = new QTimer(this, "AwayTimer");
- connect(d->timer, SIGNAL(timeout()), this, SLOT(slotTimerTimeout()));
+ d->timer = new TQTimer(this, "AwayTimer");
+ connect(d->timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimerTimeout()));
d->timer->start(4000);
//init the time and other
@@ -203,17 +203,17 @@ Kopete::Away::~Away()
delete d;
}
-QString Kopete::Away::message()
+TQString Kopete::Away::message()
{
return getInstance()->d->awayMessage;
}
-QString Kopete::Away::autoAwayMessage()
+TQString Kopete::Away::autoAwayMessage()
{
return getInstance()->d->autoAwayMessage;
}
-void Kopete::Away::setGlobalAwayMessage(const QString &message)
+void Kopete::Away::setGlobalAwayMessage(const TQString &message)
{
if( !message.isEmpty() )
{
@@ -223,7 +223,7 @@ void Kopete::Away::setGlobalAwayMessage(const QString &message)
}
}
-void Kopete::Away::setAutoAwayMessage(const QString &message)
+void Kopete::Away::setAutoAwayMessage(const TQString &message)
{
if( !message.isEmpty() )
{
@@ -275,17 +275,17 @@ void Kopete::Away::load()
d->useAutoAwayMessage=config->readBoolEntry("UseAutoAwayMessage", false);
}
-QStringList Kopete::Away::getMessages()
+TQStringList Kopete::Away::getMessages()
{
return d->awayMessageList;
}
-QString Kopete::Away::getMessage( uint messageNumber )
+TQString Kopete::Away::getMessage( uint messageNumber )
{
- QStringList::iterator it = d->awayMessageList.at( messageNumber );
+ TQStringList::iterator it = d->awayMessageList.at( messageNumber );
if( it != d->awayMessageList.end() )
{
- QString str = *it;
+ TQString str = *it;
d->awayMessageList.prepend( str );
d->awayMessageList.remove( it );
save();
@@ -293,11 +293,11 @@ QString Kopete::Away::getMessage( uint messageNumber )
}
else
{
- return QString::null;
+ return TQString::null;
}
}
-void Kopete::Away::addMessage(const QString &message)
+void Kopete::Away::addMessage(const TQString &message)
{
d->awayMessageList.prepend( message );
if( (int)d->awayMessageList.count() > KopetePrefs::prefs()->rememberedMessages() )
@@ -496,7 +496,7 @@ void Kopete::Away::setAutoAway()
// Set all accounts that are not away already to away.
// We remember them so later we only set the accounts to
// available that we set to away (and not the user).
- QPtrList accounts = Kopete::AccountManager::self()->accounts();
+ TQPtrList accounts = Kopete::AccountManager::self()->accounts();
for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() )
{
if(i->myself()->onlineStatus().status() == Kopete::OnlineStatus::Online)
diff --git a/kopete/libkopete/kopeteaway.h b/kopete/libkopete/kopeteaway.h
index 544dff75..b907f024 100644
--- a/kopete/libkopete/kopeteaway.h
+++ b/kopete/libkopete/kopeteaway.h
@@ -19,9 +19,9 @@
#ifndef KOPETEAWAY_HI
#define KOPETEAWAY_HI
-#include
-#include
-#include
+#include
+#include
+#include
#include "kopeteawaydialog.h"
#include "kopete_export.h"
@@ -72,13 +72,13 @@ public:
* @brief Gets the current global away message
* @return The global away message
*/
- static QString message();
+ static TQString message();
/**
* @brief Gets the current global auto away message
* @return The global auto away message
*/
- static QString autoAwayMessage();
+ static TQString autoAwayMessage();
/**
* This method sets the global away message,
@@ -86,7 +86,7 @@ public:
* @brief Sets the global away message
* @param message The message you want to set
*/
- void setGlobalAwayMessage(const QString &message);
+ void setGlobalAwayMessage(const TQString &message);
/**
* This method sets the global auto away message,
@@ -94,7 +94,7 @@ public:
* @brief Sets the global auto away message
* @param message The message you want to set
*/
- void setAutoAwayMessage(const QString &message);
+ void setAutoAwayMessage(const TQString &message);
/**
* @brief Sets global away for all protocols
@@ -111,11 +111,11 @@ public:
* @brief Function to get the titles of user defined away messages
* @return List of away message titles
*
- * This function can be used to retrieve a QStringList of the away message titles,
- * these titles can be passed to getMessage(QString title) to retrieve the
+ * This function can be used to retrieve a TQStringList of the away message titles,
+ * these titles can be passed to getMessage(TQString title) to retrieve the
* corresponding message.
*/
- QStringList getMessages();
+ TQStringList getMessages();
/**
* @brief Function to get an away message
@@ -125,7 +125,7 @@ public:
* This function retrieves the away message that corresponds to the ringbuffer index
* passed in.
*/
- QString getMessage( uint messageNumber );
+ TQString getMessage( uint messageNumber );
/**
* @brief Adds an away message to the ringbuffer
@@ -134,7 +134,7 @@ public:
* This function will add an away message to the ringbuffer of user defined
* away messages.
*/
- void addMessage(const QString &message);
+ void addMessage(const TQString &message);
/**
* time in seconds the user has been idle
diff --git a/kopete/libkopete/kopeteawayaction.cpp b/kopete/libkopete/kopeteawayaction.cpp
index 84622c7e..ded2a830 100644
--- a/kopete/libkopete/kopeteawayaction.cpp
+++ b/kopete/libkopete/kopeteawayaction.cpp
@@ -36,34 +36,34 @@ public:
};
-AwayAction::AwayAction(const QString &text, const QIconSet &pix, const KShortcut &cut,
- const QObject *receiver, const char *slot, QObject *parent, const char *name )
+AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const KShortcut &cut,
+ const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
: KSelectAction(text, pix, cut, parent, name ) , d(new Private( OnlineStatus() ) )
{
- QObject::connect( Kopete::Away::getInstance(), SIGNAL( messagesChanged() ),
- this, SLOT( slotAwayChanged() ) );
+ TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
+ this, TQT_SLOT( slotAwayChanged() ) );
- QObject::connect( this, SIGNAL( awayMessageSelected( const QString & ) ),
+ TQObject::connect( this, TQT_SIGNAL( awayMessageSelected( const TQString & ) ),
receiver, slot );
- QObject::connect( this, SIGNAL( activated( int ) ),
- this, SLOT( slotSelectAway( int ) ) );
+ TQObject::connect( this, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotSelectAway( int ) ) );
slotAwayChanged();
}
-AwayAction::AwayAction( const OnlineStatus& status, const QString &text, const QIconSet &pix, const KShortcut &cut,
- const QObject *receiver, const char *slot, QObject *parent, const char *name )
+AwayAction::AwayAction( const OnlineStatus& status, const TQString &text, const TQIconSet &pix, const KShortcut &cut,
+ const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
: KSelectAction(text, pix, cut, parent, name ) , d(new Private( status ) )
{
- QObject::connect( Kopete::Away::getInstance(), SIGNAL( messagesChanged() ),
- this, SLOT( slotAwayChanged() ) );
+ TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
+ this, TQT_SLOT( slotAwayChanged() ) );
- QObject::connect( this, SIGNAL( awayMessageSelected( const Kopete::OnlineStatus &, const QString & ) ),
+ TQObject::connect( this, TQT_SIGNAL( awayMessageSelected( const Kopete::OnlineStatus &, const TQString & ) ),
receiver, slot );
- QObject::connect( this, SIGNAL( activated( int ) ),
- this, SLOT( slotSelectAway( int ) ) );
+ TQObject::connect( this, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotSelectAway( int ) ) );
slotAwayChanged();
}
@@ -75,16 +75,16 @@ AwayAction::~AwayAction()
void AwayAction::slotAwayChanged()
{
- QStringList awayMessages = Kopete::Away::getInstance()->getMessages();
- for( QStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
+ TQStringList awayMessages = Kopete::Away::getInstance()->getMessages();
+ for( TQStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
{
(*it) = KStringHandler::rsqueeze( *it );
}
d->reasonCount = awayMessages.count();
- QStringList menu;
+ TQStringList menu;
menu << i18n( "No Message" );
menu << i18n( "New Message..." );
- menu << QString::null ; //separator
+ menu << TQString::null ; //separator
menu += awayMessages ;
setItems( menu );
setCurrentItem( -1 );
@@ -96,7 +96,7 @@ void AwayAction::slotSelectAway( int index )
setCurrentItem( -1 );
Kopete::Away *mAway = Kopete::Away::getInstance();
- QString awayReason;
+ TQString awayReason;
// Index == -1 means this is a result of Global Away all.
// Use the last entered message (0)
@@ -106,11 +106,11 @@ void AwayAction::slotSelectAway( int index )
switch(index)
{
case 0:
- awayReason = QString::null;
+ awayReason = TQString::null;
break;
case 1:
bool ok;
- awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , QString::null , &ok );
+ awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , TQString::null , &ok );
if(!ok) //the user canceled
return;
if( !awayReason.isEmpty() )
diff --git a/kopete/libkopete/kopeteawayaction.h b/kopete/libkopete/kopeteawayaction.h
index f8ab9d64..c787e7e7 100644
--- a/kopete/libkopete/kopeteawayaction.h
+++ b/kopete/libkopete/kopeteawayaction.h
@@ -46,20 +46,20 @@ class KOPETE_EXPORT AwayAction : public KSelectAction
* @p text, @p pix, @p cut, @p receiver, @p slot, @p parent and
* @p name are all handled by KSelectAction.
**/
- AwayAction(const QString &text, const QIconSet &pix,
- const KShortcut &cut, const QObject *receiver, const char *slot,
- QObject *parent, const char *name = 0);
+ AwayAction(const TQString &text, const TQIconSet &pix,
+ const KShortcut &cut, const TQObject *receiver, const char *slot,
+ TQObject *parent, const char *name = 0);
/**
* Constructor
* @param status the OnlineStatus that appears in the signal
- * @param slot must have the following signature: ( const OnlineStatus &, const QString & )
+ * @param slot must have the following signature: ( const OnlineStatus &, const TQString & )
* @p text, @p pix, @p cut, @p receiver, @p slot, @p parent and
* @p name are all handled by KSelectAction.
**/
- AwayAction(const OnlineStatus &status, const QString &text, const QIconSet &pix,
- const KShortcut &cut, const QObject *receiver, const char *slot,
- QObject *parent, const char *name = 0);
+ AwayAction(const OnlineStatus &status, const TQString &text, const TQIconSet &pix,
+ const KShortcut &cut, const TQObject *receiver, const char *slot,
+ TQObject *parent, const char *name = 0);
/**
* Destructor.
@@ -70,12 +70,12 @@ class KOPETE_EXPORT AwayAction : public KSelectAction
/**
* @brief Emits when the user selects an away message
*/
- void awayMessageSelected( const QString & );
+ void awayMessageSelected( const TQString & );
/**
* same as above, but with the saved status
*/
- void awayMessageSelected( const Kopete::OnlineStatus& , const QString & );
+ void awayMessageSelected( const Kopete::OnlineStatus& , const TQString & );
private slots:
void slotAwayChanged();
diff --git a/kopete/libkopete/kopeteawaydialog.cpp b/kopete/libkopete/kopeteawaydialog.cpp
index 0dbb7023..19d9fb9c 100644
--- a/kopete/libkopete/kopeteawaydialog.cpp
+++ b/kopete/libkopete/kopeteawaydialog.cpp
@@ -33,7 +33,7 @@ public:
KopeteAwayDialog_Base *base;
};
-KopeteAwayDialog::KopeteAwayDialog( QWidget *parent, const char *name )
+KopeteAwayDialog::KopeteAwayDialog( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "Global Away Message" ),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true )
{
@@ -44,7 +44,7 @@ KopeteAwayDialog::KopeteAwayDialog( QWidget *parent, const char *name )
d->base = new KopeteAwayDialog_Base( this );
setMainWidget( d->base );
- QObject::connect( d->base->cmbHistory, SIGNAL( activated( int ) ), this, SLOT( slotComboBoxSelection( int ) ) );
+ TQObject::connect( d->base->cmbHistory, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotComboBoxSelection( int ) ) );
awayInstance = Kopete::Away::getInstance();
mExtendedAwayType = 0;
@@ -99,8 +99,8 @@ void KopeteAwayDialog::cancelAway( int /* awayType */ )
void KopeteAwayDialog::init()
{
- QStringList awayMessages = awayInstance->getMessages();
- for( QStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
+ TQStringList awayMessages = awayInstance->getMessages();
+ for( TQStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
{
*it = KStringHandler::rsqueeze( *it );
}
@@ -113,7 +113,7 @@ void KopeteAwayDialog::init()
d->base->txtOneShot->setCursorPosition( 0 );
}
-QString KopeteAwayDialog::getSelectedAwayMessage()
+TQString KopeteAwayDialog::getSelectedAwayMessage()
{
mLastUserAwayMessage = d->base->txtOneShot->text();
return mLastUserAwayMessage;
diff --git a/kopete/libkopete/kopeteawaydialog.h b/kopete/libkopete/kopeteawaydialog.h
index 313cafe2..517e419c 100644
--- a/kopete/libkopete/kopeteawaydialog.h
+++ b/kopete/libkopete/kopeteawaydialog.h
@@ -60,7 +60,7 @@ public:
* @param parent The object that owns this
* @param name Name for this object
*/
- KopeteAwayDialog( QWidget *parent = 0, const char *name = 0 );
+ KopeteAwayDialog( TQWidget *parent = 0, const char *name = 0 );
/**
* Destructor
@@ -78,7 +78,7 @@ protected:
* \brief Gets the last selected away message
* @return An away message
*/
- QString getSelectedAwayMessage();
+ TQString getSelectedAwayMessage();
/**
* \brief Sets the user away
@@ -178,13 +178,13 @@ private:
* saved away message, whichever was
* last chosen
*/
- QString mLastUserAwayMessage;
+ TQString mLastUserAwayMessage;
/**
* The last message that the user typed in the
* line edit
*/
- QString mLastUserTypedMessage;
+ TQString mLastUserTypedMessage;
/**
* This is used to store the type of away that we're
diff --git a/kopete/libkopete/kopeteblacklister.cpp b/kopete/libkopete/kopeteblacklister.cpp
index 8ec5c54b..29dbf727 100644
--- a/kopete/libkopete/kopeteblacklister.cpp
+++ b/kopete/libkopete/kopeteblacklister.cpp
@@ -20,7 +20,7 @@
#include
#include
-#include
+#include
namespace Kopete
{
@@ -28,21 +28,21 @@ namespace Kopete
class BlackLister::Private
{
public:
- QStringList blacklist;
- QString owner;
- QString protocol;
+ TQStringList blacklist;
+ TQString owner;
+ TQString protocol;
};
-BlackLister::BlackLister(const QString &protocolId, const QString &accountId, QObject *parent, const char *name)
- : QObject(parent, name), d( new Private )
+BlackLister::BlackLister(const TQString &protocolId, const TQString &accountId, TQObject *parent, const char *name)
+ : TQObject(parent, name), d( new Private )
{
KConfig *config = KGlobal::config();
d->owner = accountId;
d->protocol = protocolId;
config->setGroup("BlackLister");
- d->blacklist = config->readListEntry( d->protocol + QString::fromLatin1("_") + d->owner );
+ d->blacklist = config->readListEntry( d->protocol + TQString::fromLatin1("_") + d->owner );
}
BlackLister::~BlackLister()
@@ -51,7 +51,7 @@ BlackLister::~BlackLister()
}
-bool BlackLister::isBlocked(const QString &contactId)
+bool BlackLister::isBlocked(const TQString &contactId)
{
return (d->blacklist.find( contactId ) != d->blacklist.end() );
}
@@ -61,7 +61,7 @@ bool BlackLister::isBlocked(Contact *contact)
return isBlocked(contact->contactId());
}
-void BlackLister::addContact(const QString &contactId)
+void BlackLister::addContact(const TQString &contactId)
{
if( !isBlocked(contactId) )
{
@@ -73,14 +73,14 @@ void BlackLister::addContact(const QString &contactId)
void BlackLister::addContact(Contact *contact)
{
- QString temp = contact->contactId();
+ TQString temp = contact->contactId();
addContact( temp );
}
void BlackLister::removeContact(Contact *contact)
{
- QString temp = contact->contactId();
+ TQString temp = contact->contactId();
removeContact( temp );
}
@@ -90,11 +90,11 @@ void BlackLister::saveToDisk()
KConfig *config = KGlobal::config();
config->setGroup("BlackLister");
- config->writeEntry( d->protocol + QString::fromLatin1("_") + d->owner, d->blacklist );
+ config->writeEntry( d->protocol + TQString::fromLatin1("_") + d->owner, d->blacklist );
config->sync();
}
-void BlackLister::removeContact(const QString &contactId)
+void BlackLister::removeContact(const TQString &contactId)
{
if( isBlocked(contactId) )
{
diff --git a/kopete/libkopete/kopeteblacklister.h b/kopete/libkopete/kopeteblacklister.h
index ed3e5566..c2df1bca 100644
--- a/kopete/libkopete/kopeteblacklister.h
+++ b/kopete/libkopete/kopeteblacklister.h
@@ -16,7 +16,7 @@
#ifndef KOPETEBLACKLISTER_H
#define KOPETEBLACKLISTER_H
-#include
+#include
namespace Kopete
{
@@ -51,10 +51,10 @@ public:
* Create an instance, and read the blacklist from disk if it exists.
* @param protocolId is the ID of the protocol owning accountId
* @param accountId is the ID of the owning Account.
- * @param parent The QObject parent for this class.
- * @param name The QObject name for this class.
+ * @param parent The TQObject parent for this class.
+ * @param name The TQObject name for this class.
*/
- BlackLister( const QString &protocolId, const QString &accountId, QObject *parent = 0, const char *name = 0 );
+ BlackLister( const TQString &protocolId, const TQString &accountId, TQObject *parent = 0, const char *name = 0 );
~BlackLister();
/**
@@ -65,7 +65,7 @@ public:
/**
* \return @c true if the contact with ID @p contactId is blocked, @c false otherwise.
*/
- bool isBlocked( const QString &contactId );
+ bool isBlocked( const TQString &contactId );
public slots:
/**
@@ -74,7 +74,7 @@ public slots:
* This function emits the @ref contactAdded() signal.
* @param contactId is the ID of the contact to be added to the list.
*/
- void addContact( const QString &contactId );
+ void addContact( const TQString &contactId );
/**
* @overload
@@ -93,7 +93,7 @@ public slots:
/**
* @overload
*/
- void removeContact( const QString &contactId );
+ void removeContact( const TQString &contactId );
signals:
/**
@@ -102,7 +102,7 @@ signals:
* Connect to this signal if you want to perform additional actions,
* and you prefer not to derive from this class.
*/
- void contactAdded( const QString &contactId );
+ void contactAdded( const TQString &contactId );
/**
* \brief A contact has been removed from the list
@@ -110,7 +110,7 @@ signals:
* Connect to this signal if you want to perform additional actions,
* and you prefer not to derive from this class.
*/
- void contactRemoved( const QString &contactId );
+ void contactRemoved( const TQString &contactId );
private:
void saveToDisk();
diff --git a/kopete/libkopete/kopetechatsession.cpp b/kopete/libkopete/kopetechatsession.cpp
index 9ebf1d07..91866cce 100644
--- a/kopete/libkopete/kopetechatsession.cpp
+++ b/kopete/libkopete/kopetechatsession.cpp
@@ -22,8 +22,8 @@
#include "kopetechatsession.h"
-#include
-#include
+#include
+#include
#include
#include
@@ -49,14 +49,14 @@ class KMMPrivate
public:
Kopete::ContactPtrList mContactList;
const Kopete::Contact *mUser;
- QMap contactStatus;
+ TQMap contactStatus;
Kopete::Protocol *mProtocol;
bool isEmpty;
bool mCanBeDeleted;
unsigned int refcount;
bool customDisplayName;
- QDateTime awayTime;
- QString displayName;
+ TQDateTime awayTime;
+ TQString displayName;
KopeteView *view;
bool mayInvite;
Kopete::MessageHandlerChain::Ptr chains[3];
@@ -64,7 +64,7 @@ public:
Kopete::ChatSession::ChatSession( const Kopete::Contact *user,
Kopete::ContactPtrList others, Kopete::Protocol *protocol, const char *name )
-: QObject( user->account(), name )
+: TQObject( user->account(), name )
{
d = new KMMPrivate;
d->mUser = user;
@@ -79,11 +79,11 @@ Kopete::ChatSession::ChatSession( const Kopete::Contact *user,
for ( Kopete::Contact *c = others.first(); c; c = others.next() )
addContact( c, true );
- connect( user, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ), this,
- SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
+ connect( user, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ), this,
+ TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ) );
if( user->metaContact() )
- connect( user->metaContact(), SIGNAL( photoChanged() ), this, SIGNAL( photoChanged() ) );
+ connect( user->metaContact(), TQT_SIGNAL( photoChanged() ), this, TQT_SIGNAL( photoChanged() ) );
slotUpdateDisplayName();
}
@@ -111,8 +111,8 @@ void Kopete::ChatSession::setContactOnlineStatus( const Kopete::Contact *contact
{
Kopete::OnlineStatus oldStatus = d->contactStatus[ contact ];
d->contactStatus[ contact ] = status;
- disconnect( contact, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
+ disconnect( contact, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
emit onlineStatusChanged( (Kopete::Contact*)contact, status, oldStatus );
}
@@ -124,7 +124,7 @@ const Kopete::OnlineStatus Kopete::ChatSession::contactOnlineStatus( const Kopet
return contact->onlineStatus();
}
-const QString Kopete::ChatSession::displayName()
+const TQString Kopete::ChatSession::displayName()
{
if ( d->displayName.isNull() )
{
@@ -134,7 +134,7 @@ const QString Kopete::ChatSession::displayName()
return d->displayName;
}
-void Kopete::ChatSession::setDisplayName( const QString &newName )
+void Kopete::ChatSession::setDisplayName( const TQString &newName )
{
d->displayName = newName;
d->customDisplayName = true;
@@ -152,17 +152,17 @@ void Kopete::ChatSession::slotUpdateDisplayName()
if ( !c )
return;
- d->displayName=QString::null;
+ d->displayName=TQString::null;
do
{
if(! d->displayName.isNull() )
- d->displayName.append( QString::fromLatin1( ", " ) ) ;
+ d->displayName.append( TQString::fromLatin1( ", " ) ) ;
if ( c->metaContact() )
d->displayName.append( c->metaContact()->displayName() );
else
{
- QString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString();
+ TQString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString();
d->displayName.append( nick.isEmpty() ? c->contactId() : nick );
}
c=d->mContactList.next();
@@ -171,7 +171,7 @@ void Kopete::ChatSession::slotUpdateDisplayName()
//If we have only 1 contact, add the status of him
if ( d->mContactList.count() == 1 )
{
- d->displayName.append( QString::fromLatin1( " (%1)" ).arg( d->mContactList.first()->onlineStatus().description() ) );
+ d->displayName.append( TQString::fromLatin1( " (%1)" ).arg( d->mContactList.first()->onlineStatus().description() ) );
}
emit displayNameChanged();
@@ -248,7 +248,7 @@ void Kopete::ChatSession::sendMessage( Kopete::Message &message )
emit messageSent( sentMessage, this );
if ( !account()->isAway() || KopetePrefs::prefs()->soundIfAway() )
{
- KNotification::event(QString::fromLatin1( "kopete_outgoing" ), i18n( "Outgoing Message Sent" ) );
+ KNotification::event(TQString::fromLatin1( "kopete_outgoing" ), i18n( "Outgoing Message Sent" ) );
}
}
else
@@ -264,7 +264,7 @@ void Kopete::ChatSession::messageSucceeded()
void Kopete::ChatSession::emitNudgeNotification()
{
- KNotification::event( QString::fromLatin1("buzz_nudge"), i18n("A contact sent you a buzz/nudge.") );
+ KNotification::event( TQString::fromLatin1("buzz_nudge"), i18n("A contact sent you a buzz/nudge.") );
}
void Kopete::ChatSession::appendMessage( Kopete::Message &msg )
@@ -273,9 +273,9 @@ void Kopete::ChatSession::appendMessage( Kopete::Message &msg )
if ( msg.direction() == Kopete::Message::Inbound )
{
- QString nick=myself()->property(Kopete::Global::Properties::self()->nickName()).value().toString();
+ TQString nick=myself()->property(Kopete::Global::Properties::self()->nickName()).value().toString();
if ( KopetePrefs::prefs()->highlightEnabled() && !nick.isEmpty() &&
- msg.plainBody().contains( QRegExp( QString::fromLatin1( "\\b(%1)\\b" ).arg( nick ), false ) ) )
+ msg.plainBody().contains( TQRegExp( TQString::fromLatin1( "\\b(%1)\\b" ).arg( nick ), false ) ) )
{
msg.setImportance( Kopete::Message::Highlight );
}
@@ -320,18 +320,18 @@ void Kopete::ChatSession::addContact( const Kopete::Contact *c, bool suppress )
d->mContactList.remove( old );
d->mContactList.append( c );
- disconnect( old, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
+ disconnect( old, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
if ( old->metaContact() )
{
- disconnect( old->metaContact(), SIGNAL( displayNameChanged( const QString &, const QString & ) ), this, SLOT( slotUpdateDisplayName() ) );
- disconnect( old->metaContact(), SIGNAL( photoChanged() ), this, SIGNAL( photoChanged() ) );
+ disconnect( old->metaContact(), TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
+ disconnect( old->metaContact(), TQT_SIGNAL( photoChanged() ), this, TQT_SIGNAL( photoChanged() ) );
}
else
- disconnect( old, SIGNAL( propertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ), this, SLOT( slotUpdateDisplayName() ) );
+ disconnect( old, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
emit contactAdded( c, suppress );
- emit contactRemoved( old, QString::null );
+ emit contactRemoved( old, TQString::null );
}
else
{
@@ -339,24 +339,24 @@ void Kopete::ChatSession::addContact( const Kopete::Contact *c, bool suppress )
emit contactAdded( c, suppress );
}
- connect( c, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
+ connect( c, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
;
if ( c->metaContact() )
{
- connect( c->metaContact(), SIGNAL( displayNameChanged( const QString &, const QString & ) ), this, SLOT( slotUpdateDisplayName() ) );
- connect( c->metaContact(), SIGNAL( photoChanged() ), this, SIGNAL( photoChanged() ) );
+ connect( c->metaContact(), TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
+ connect( c->metaContact(), TQT_SIGNAL( photoChanged() ), this, TQT_SIGNAL( photoChanged() ) );
}
else
- connect( c, SIGNAL( propertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ), this, SLOT( slotUpdateDisplayName() ) );
- connect( c, SIGNAL( contactDestroyed( Kopete::Contact * ) ), this, SLOT( slotContactDestroyed( Kopete::Contact * ) ) );
+ connect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
+ connect( c, TQT_SIGNAL( contactDestroyed( Kopete::Contact * ) ), this, TQT_SLOT( slotContactDestroyed( Kopete::Contact * ) ) );
slotUpdateDisplayName();
}
d->isEmpty = false;
}
-void Kopete::ChatSession::removeContact( const Kopete::Contact *c, const QString& reason, Kopete::Message::MessageFormat format, bool suppressNotification )
+void Kopete::ChatSession::removeContact( const Kopete::Contact *c, const TQString& reason, Kopete::Message::MessageFormat format, bool suppressNotification )
{
kdDebug( 14010 ) << k_funcinfo << endl;
if ( !c || !d->mContactList.contains( c ) )
@@ -371,17 +371,17 @@ void Kopete::ChatSession::removeContact( const Kopete::Contact *c, const QString
{
d->mContactList.remove( c );
- disconnect( c, SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
- this, SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
+ disconnect( c, TQT_SIGNAL( onlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus & ) ),
+ this, TQT_SLOT( slotOnlineStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) ) );
if ( c->metaContact() )
{
- disconnect( c->metaContact(), SIGNAL( displayNameChanged( const QString &, const QString & ) ), this, SLOT( slotUpdateDisplayName() ) );
- disconnect( c->metaContact(), SIGNAL( photoChanged() ), this, SIGNAL( photoChanged() ) );
+ disconnect( c->metaContact(), TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
+ disconnect( c->metaContact(), TQT_SIGNAL( photoChanged() ), this, TQT_SIGNAL( photoChanged() ) );
}
else
- disconnect( c, SIGNAL( propertyChanged( Kopete::Contact *, const QString &, const QVariant &, const QVariant & ) ), this, SLOT( slotUpdateDisplayName() ) );
- disconnect( c, SIGNAL( contactDestroyed( Kopete::Contact * ) ), this, SLOT( slotContactDestroyed( Kopete::Contact * ) ) );
+ disconnect( c, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ), this, TQT_SLOT( slotUpdateDisplayName() ) );
+ disconnect( c, TQT_SIGNAL( contactDestroyed( Kopete::Contact * ) ), this, TQT_SLOT( slotContactDestroyed( Kopete::Contact * ) ) );
slotUpdateDisplayName();
}
@@ -396,7 +396,7 @@ void Kopete::ChatSession::receivedTypingMsg( const Kopete::Contact *c, bool t )
emit remoteTyping( c, t );
}
-void Kopete::ChatSession::receivedTypingMsg( const QString &contactId, bool t )
+void Kopete::ChatSession::receivedTypingMsg( const TQString &contactId, bool t )
{
for ( Kopete::Contact *it = d->mContactList.first(); it; it = d->mContactList.next() )
{
@@ -413,7 +413,7 @@ void Kopete::ChatSession::typing( bool t )
emit myselfTyping( t );
}
-void Kopete::ChatSession::receivedEventNotification( const QString& notificationText)
+void Kopete::ChatSession::receivedEventNotification( const TQString& notificationText)
{
emit eventNotification( notificationText );
}
@@ -436,14 +436,14 @@ void Kopete::ChatSession::deref ()
deleteLater();
}
-KopeteView* Kopete::ChatSession::view( bool canCreate, const QString &requestedPlugin )
+KopeteView* Kopete::ChatSession::view( bool canCreate, const TQString &requestedPlugin )
{
if ( !d->view && canCreate )
{
d->view = Kopete::ChatSessionManager::self()->createView( this, requestedPlugin );
if ( d->view )
{
- connect( d->view->mainWidget(), SIGNAL( closing( KopeteView * ) ), this, SLOT( slotViewDestroyed( ) ) );
+ connect( d->view->mainWidget(), TQT_SIGNAL( closing( KopeteView * ) ), this, TQT_SLOT( slotViewDestroyed( ) ) );
}
else
{
@@ -479,7 +479,7 @@ void Kopete::ChatSession::slotContactDestroyed( Kopete::Contact *contact )
// in the best case, we should ask the protocol to recreate a temporary contact.
// (remember: the contact may be deleted when the users removes it from the contactlist, or when closing kopete )
d->mContactList.remove( contact );
- emit contactRemoved( contact, QString::null );
+ emit contactRemoved( contact, TQString::null );
if ( d->mContactList.isEmpty() )
deleteLater();
@@ -490,7 +490,7 @@ bool Kopete::ChatSession::mayInvite() const
return d->mayInvite;
}
-void Kopete::ChatSession::inviteContact(const QString& )
+void Kopete::ChatSession::inviteContact(const TQString& )
{
//default implementation do nothing
}
diff --git a/kopete/libkopete/kopetechatsession.h b/kopete/libkopete/kopetechatsession.h
index 86d5fa64..928ac7d5 100644
--- a/kopete/libkopete/kopetechatsession.h
+++ b/kopete/libkopete/kopetechatsession.h
@@ -23,9 +23,9 @@
#ifndef __KOPETECHATSESSION_H__
#define __KOPETECHATSESSION_H__
-#include
-#include
-#include
+#include
+#include
+#include
#include
@@ -51,8 +51,8 @@ class ChatSessionManager;
class MessageHandlerChain;
class TemporaryKMMCallbackAppendMessageHandler;
-typedef QPtrList ContactPtrList;
-typedef QValueList MessageList;
+typedef TQPtrList ContactPtrList;
+typedef TQValueList MessageList;
/**
@@ -71,7 +71,7 @@ typedef QValueList MessageList;
* so plugins can add childClients of this client to add their own actions in the
* chatwindow.
*/
-class KOPETE_EXPORT ChatSession : public QObject , public KXMLGUIClient
+class KOPETE_EXPORT ChatSession : public TQObject , public KXMLGUIClient
{
// friend class so the object factory can access the protected constructor
friend class ChatSessionManager;
@@ -114,14 +114,14 @@ public:
*
* Used for named chats
*/
- const QString displayName();
+ const TQString displayName();
/**
* @brief change the displayname
*
* change the display name of the chat
*/
- void setDisplayName( const QString &displayName );
+ void setDisplayName( const TQString &displayName );
/**
* @brief set a specified KOS for specified contact in this KMM
@@ -148,7 +148,7 @@ public:
* @param requestedPlugin Specifies the view plugin to use if we have to create one.
*/
// FIXME: canCreate should definitely be an enum and not a bool - Martijn
- KopeteView* view( bool canCreate = false, const QString &requestedPlugin = QString::null );
+ KopeteView* view( bool canCreate = false, const TQString &requestedPlugin = TQString::null );
/**
* says if you may invite contact from the same account to this chat with @ref inviteContact
@@ -166,7 +166,7 @@ public:
*
* the default implementaiton do nothing
*/
- virtual void inviteContact(const QString &contactId);
+ virtual void inviteContact(const TQString &contactId);
/**
* Returns the message handler chain for the message direction @p dir.
@@ -216,7 +216,7 @@ signals:
/**
* @brief a contact is no longer in this chat
*/
- void contactRemoved( const Kopete::Contact *contact, const QString &reason, Kopete::Message::MessageFormat format = Message::PlainText, bool contactRemoved = false );
+ void contactRemoved( const Kopete::Contact *contact, const TQString &reason, Kopete::Message::MessageFormat format = Message::PlainText, bool contactRemoved = false );
/**
* @brief a contact in this chat has changed his status
@@ -248,7 +248,7 @@ signals:
* Signals that a an event has to be displayed in the statusbar.
* The chatwindow connects to this signal to update the statusbar.
*/
- void eventNotification( const QString& notificationText);
+ void eventNotification( const TQString& notificationText);
/**
* @brief A contact within the chat session changed his photo.
@@ -264,17 +264,17 @@ public slots:
/**
* Got a typing notification from a user. This is a convenience version
- * of the above method that takes a QString contactId instead of a full
+ * of the above method that takes a TQString contactId instead of a full
* Kopete::Contact
*/
- void receivedTypingMsg( const QString &contactId, bool isTyping = true );
+ void receivedTypingMsg( const TQString &contactId, bool isTyping = true );
/**
* @brief Got an event notification from a user.
* It will emit the signal eventNotification(). Use this slot in your protocols
* and plugins to change chatwindow statusBar text.
*/
- void receivedEventNotification( const QString& notificationText );
+ void receivedEventNotification( const TQString& notificationText );
/**
* Show a message to the chatwindow, or append it to the queue.
@@ -310,7 +310,7 @@ public slots:
* @param format The format of the message
* @param suppressNotification prevents a notification of the removal in the chat view. See note in @ref addContact
*/
- void removeContact( const Kopete::Contact *contact, const QString& reason = QString::null, Kopete::Message::MessageFormat format = Message::PlainText, bool suppressNotification = false );
+ void removeContact( const Kopete::Contact *contact, const TQString& reason = TQString::null, Kopete::Message::MessageFormat format = Message::PlainText, bool suppressNotification = false );
/**
* Set if the KMM will be deleted when the chatwindow is deleted. It is useful if you want
diff --git a/kopete/libkopete/kopetechatsessionmanager.cpp b/kopete/libkopete/kopetechatsessionmanager.cpp
index 9b7dd489..4805927b 100644
--- a/kopete/libkopete/kopetechatsessionmanager.cpp
+++ b/kopete/libkopete/kopetechatsessionmanager.cpp
@@ -29,7 +29,7 @@ namespace Kopete {
class ChatSessionManager::Private
{
public:
- QValueList sessions;
+ TQValueList sessions;
// UI::ChatView *activeView;
};
@@ -43,9 +43,9 @@ ChatSessionManager* ChatSessionManager::self()
return s_self;
}
-ChatSessionManager::ChatSessionManager( QObject* parent,
+ChatSessionManager::ChatSessionManager( TQObject* parent,
const char* name )
- : QObject( parent, name )
+ : TQObject( parent, name )
{
d=new Private;
s_self = this;
@@ -54,7 +54,7 @@ ChatSessionManager::ChatSessionManager( QObject* parent,
ChatSessionManager::~ChatSessionManager()
{
s_self = 0L;
- QValueListIterator it;
+ TQValueListIterator it;
for ( it=d->sessions.begin() ; it!=d->sessions.end() ; ++it )
{
kdDebug( 14010 ) << k_funcinfo << "Unloading KMM: Why this KMM isn't yet unloaded?" << endl;
@@ -67,13 +67,13 @@ ChatSession* ChatSessionManager::findChatSession(const Contact *user,
ContactPtrList chatContacts, Protocol *protocol)
{
ChatSession *result = 0L;
- QValueList::Iterator it;
+ TQValueList::Iterator it;
for ( it= d->sessions.begin(); it!=d->sessions.end() && !result ; ++it )
{
ChatSession* cs=(*it);
if ( cs->protocol() == protocol && user == cs->myself() )
{
- QPtrList contactlist = cs->members();
+ TQPtrList contactlist = cs->members();
// set this to false if chatContacts doesn't contain current cs's contactlist
bool halfMatch = true;
@@ -128,15 +128,15 @@ void ChatSessionManager::registerChatSession(ChatSession * result)
* There's no need for a slot here... just add a public remove()
* method and call from KMM's destructor
*/
- connect( result, SIGNAL( messageAppended( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToDisplay( Kopete::Message & ) ) );
- connect( result, SIGNAL( messageSent( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToSend(Kopete::Message & ) ) );
- connect( result, SIGNAL( messageReceived( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToReceive(Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageAppended( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToDisplay( Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageSent( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToSend(Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageReceived( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToReceive(Kopete::Message & ) ) );
- connect( result, SIGNAL(messageAppended( Kopete::Message &, Kopete::ChatSession *) ),
- SIGNAL( display( Kopete::Message &, Kopete::ChatSession *) ) );
+ connect( result, TQT_SIGNAL(messageAppended( Kopete::Message &, Kopete::ChatSession *) ),
+ TQT_SIGNAL( display( Kopete::Message &, Kopete::ChatSession *) ) );
emit chatSessionCreated(result);
}
@@ -148,12 +148,12 @@ void ChatSessionManager::removeSession( ChatSession *session)
d->sessions.remove( session );
}
-QValueList ChatSessionManager::sessions( )
+TQValueList ChatSessionManager::sessions( )
{
return d->sessions;
}
-KopeteView * ChatSessionManager::createView( ChatSession *kmm , const QString &requestedPlugin )
+KopeteView * ChatSessionManager::createView( ChatSession *kmm , const TQString &requestedPlugin )
{
KopeteView *newView = KopeteViewManager::viewManager()->view(kmm,requestedPlugin);
if(!newView)
@@ -162,17 +162,17 @@ KopeteView * ChatSessionManager::createView( ChatSession *kmm , const QString &r
return 0L;
}
- QObject *viewObject = dynamic_cast(newView);
+ TQObject *viewObject = dynamic_cast(newView);
if(viewObject)
{
- connect(viewObject, SIGNAL(activated(KopeteView *)),
- this, SIGNAL(viewActivated(KopeteView *)));
- connect(viewObject, SIGNAL(closing(KopeteView *)),
- this, SIGNAL(viewClosing(KopeteView *)));
+ connect(viewObject, TQT_SIGNAL(activated(KopeteView *)),
+ this, TQT_SIGNAL(viewActivated(KopeteView *)));
+ connect(viewObject, TQT_SIGNAL(closing(KopeteView *)),
+ this, TQT_SIGNAL(viewClosing(KopeteView *)));
}
else
{
- kdWarning(14010) << "Failed to cast view to QObject *" << endl;
+ kdWarning(14010) << "Failed to cast view to TQObject *" << endl;
}
emit viewCreated( newView ) ;
diff --git a/kopete/libkopete/kopetechatsessionmanager.h b/kopete/libkopete/kopetechatsessionmanager.h
index e41eb14d..efabd604 100644
--- a/kopete/libkopete/kopetechatsessionmanager.h
+++ b/kopete/libkopete/kopetechatsessionmanager.h
@@ -18,10 +18,10 @@
#ifndef KOPETEMESSAGEMANAGERFACTORY_H
#define KOPETEMESSAGEMANAGERFACTORY_H
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include "kopetechatsession.h"
#include "kopetemessage.h"
@@ -37,8 +37,8 @@ class Contact;
class Protocol;
class MessageEvent;
-typedef QPtrList ContactPtrList;
-typedef QValueList MessageList;
+typedef TQPtrList ContactPtrList;
+typedef TQValueList MessageList;
/**
* @author Duncan Mac-Vicar Prett
@@ -85,7 +85,7 @@ public:
/**
* Get a list of all open sessions.
*/
- QValueList sessions();
+ TQValueList sessions();
/**
* @internal
@@ -97,7 +97,7 @@ public:
* create a new view for the manager.
* only the manager should call this function
*/
- KopeteView *createView( Kopete::ChatSession * , const QString &requestedPlugin = QString::null );
+ KopeteView *createView( Kopete::ChatSession * , const TQString &requestedPlugin = TQString::null );
/**
* Post a new event. this will emit the @ref newEvent signal
@@ -175,7 +175,7 @@ public slots:
void slotReadMessage();
private:
- ChatSessionManager( QObject* parent = 0, const char* name = 0 );
+ ChatSessionManager( TQObject* parent = 0, const char* name = 0 );
class Private;
Private *d;
diff --git a/kopete/libkopete/kopetecommandhandler.cpp b/kopete/libkopete/kopetecommandhandler.cpp
index b761ec08..cd4dcd8c 100644
--- a/kopete/libkopete/kopetecommandhandler.cpp
+++ b/kopete/libkopete/kopetecommandhandler.cpp
@@ -15,14 +15,14 @@
*/
#include
-#include
+#include
#include
#include
#include
#include
#include
#include
-#include
+#include
#include "kopetechatsessionmanager.h"
#include "kopeteprotocol.h"
@@ -36,36 +36,36 @@
using Kopete::CommandList;
-typedef QMap PluginCommandMap;
-typedef QMap CommandMap;
+typedef TQMap PluginCommandMap;
+typedef TQMap CommandMap;
typedef QPair ManagerPair;
-class KopeteCommandGUIClient : public QObject, public KXMLGUIClient
+class KopeteCommandGUIClient : public TQObject, public KXMLGUIClient
{
public:
- KopeteCommandGUIClient( Kopete::ChatSession *manager ) : QObject(manager), KXMLGUIClient(manager)
+ KopeteCommandGUIClient( Kopete::ChatSession *manager ) : TQObject(manager), KXMLGUIClient(manager)
{
- setXMLFile( QString::fromLatin1("kopetecommandui.rc") );
+ setXMLFile( TQString::fromLatin1("kopetecommandui.rc") );
- QDomDocument doc = domDocument();
- QDomNode menu = doc.documentElement().firstChild().firstChild().firstChild();
+ TQDomDocument doc = domDocument();
+ TQDomNode menu = doc.documentElement().firstChild().firstChild().firstChild();
CommandList mCommands = Kopete::CommandHandler::commandHandler()->commands(
manager->protocol()
);
- for( QDictIterator it( mCommands ); it.current(); ++it )
+ for( TQDictIterator it( mCommands ); it.current(); ++it )
{
KAction *a = static_cast( it.current() );
actionCollection()->insert( a );
- QDomElement newNode = doc.createElement( QString::fromLatin1("Action") );
- newNode.setAttribute( QString::fromLatin1("name"),
- QString::fromLatin1( a->name() ) );
+ TQDomElement newNode = doc.createElement( TQString::fromLatin1("Action") );
+ newNode.setAttribute( TQString::fromLatin1("name"),
+ TQString::fromLatin1( a->name() ) );
bool added = false;
- for( QDomElement n = menu.firstChild().toElement();
+ for( TQDomElement n = menu.firstChild().toElement();
!n.isNull(); n = n.nextSibling().toElement() )
{
- if( QString::fromLatin1(a->name()) < n.attribute(QString::fromLatin1("name")))
+ if( TQString::fromLatin1(a->name()) < n.attribute(TQString::fromLatin1("name")))
{
menu.insertBefore( newNode, n );
added = true;
@@ -87,14 +87,14 @@ struct CommandHandlerPrivate
{
PluginCommandMap pluginCommands;
Kopete::CommandHandler *s_handler;
- QMap processMap;
+ TQMap processMap;
bool inCommand;
- QPtrList m_commands;
+ TQPtrList m_commands;
};
CommandHandlerPrivate *Kopete::CommandHandler::p = 0L;
-Kopete::CommandHandler::CommandHandler() : QObject( qApp )
+Kopete::CommandHandler::CommandHandler() : TQObject( qApp )
{
p->s_handler = this;
p->inCommand = false;
@@ -103,41 +103,41 @@ Kopete::CommandHandler::CommandHandler() : QObject( qApp )
mCommands.setAutoDelete( true );
p->pluginCommands.insert( this, mCommands );
- registerCommand( this, QString::fromLatin1("help"), SLOT( slotHelpCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("help"), TQT_SLOT( slotHelpCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /help [] - Used to list available commands, or show help for a specified command." ), 0, 1 );
- registerCommand( this, QString::fromLatin1("close"), SLOT( slotCloseCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("close"), TQT_SLOT( slotCloseCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /close - Closes the current view." ) );
// FIXME: What's the difference with /close? The help doesn't explain it - Martijn
- registerCommand( this, QString::fromLatin1("part"), SLOT( slotPartCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("part"), TQT_SLOT( slotPartCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /part - Closes the current view." ) );
- registerCommand( this, QString::fromLatin1("clear"), SLOT( slotClearCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("clear"), TQT_SLOT( slotClearCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /clear - Clears the active view's chat buffer." ) );
- //registerCommand( this, QString::fromLatin1("me"), SLOT( slotMeCommand( const QString &, Kopete::ChatSession * ) ),
+ //registerCommand( this, TQString::fromLatin1("me"), TQT_SLOT( slotMeCommand( const TQString &, Kopete::ChatSession * ) ),
// i18n( "USAGE: /me - Formats message as in ' went to the store'." ) );
- registerCommand( this, QString::fromLatin1("away"), SLOT( slotAwayCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("away"), TQT_SLOT( slotAwayCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /away [] - Marks you as away/back for the current account only." ) );
- registerCommand( this, QString::fromLatin1("awayall"), SLOT( slotAwayAllCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("awayall"), TQT_SLOT( slotAwayAllCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /awayall [] - Marks you as away/back for all accounts." ) );
- registerCommand( this, QString::fromLatin1("say"), SLOT( slotSayCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("say"), TQT_SLOT( slotSayCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /say - Say text in this chat. This is the same as just typing a message, but is very "
"useful for scripts." ), 1 );
- registerCommand( this, QString::fromLatin1("exec"), SLOT( slotExecCommand( const QString &, Kopete::ChatSession * ) ),
+ registerCommand( this, TQString::fromLatin1("exec"), TQT_SLOT( slotExecCommand( const TQString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /exec [-o] - Executes the specified command and displays the output in the chat buffer. "
"If -o is specified, the output is sent to all members of the chat."), 1 );
- connect( Kopete::PluginManager::self(), SIGNAL( pluginLoaded( Kopete::Plugin*) ),
- this, SLOT(slotPluginLoaded(Kopete::Plugin*) ) );
+ connect( Kopete::PluginManager::self(), TQT_SIGNAL( pluginLoaded( Kopete::Plugin*) ),
+ this, TQT_SLOT(slotPluginLoaded(Kopete::Plugin*) ) );
- connect( Kopete::ChatSessionManager::self(), SIGNAL( viewCreated( KopeteView * ) ),
- this, SLOT( slotViewCreated( KopeteView* ) ) );
+ connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( viewCreated( KopeteView * ) ),
+ this, TQT_SLOT( slotViewCreated( KopeteView* ) ) );
}
Kopete::CommandHandler::~CommandHandler()
@@ -156,45 +156,45 @@ Kopete::CommandHandler *Kopete::CommandHandler::commandHandler()
return p->s_handler;
}
-void Kopete::CommandHandler::registerCommand( QObject *parent, const QString &command, const char* handlerSlot,
- const QString &help, uint minArgs, int maxArgs, const KShortcut &cut, const QString &pix )
+void Kopete::CommandHandler::registerCommand( TQObject *parent, const TQString &command, const char* handlerSlot,
+ const TQString &help, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
{
- QString lowerCommand = command.lower();
+ TQString lowerCommand = command.lower();
Kopete::Command *mCommand = new Kopete::Command( parent, lowerCommand, handlerSlot, help,
- Normal, QString::null, minArgs, maxArgs, cut, pix);
+ Normal, TQString::null, minArgs, maxArgs, cut, pix);
p->pluginCommands[ parent ].insert( lowerCommand, mCommand );
}
-void Kopete::CommandHandler::unregisterCommand( QObject *parent, const QString &command )
+void Kopete::CommandHandler::unregisterCommand( TQObject *parent, const TQString &command )
{
if( p->pluginCommands[ parent ].find(command) )
p->pluginCommands[ parent ].remove( command );
}
-void Kopete::CommandHandler::registerAlias( QObject *parent, const QString &alias, const QString &formatString,
- const QString &help, CommandType type, uint minArgs, int maxArgs, const KShortcut &cut, const QString &pix )
+void Kopete::CommandHandler::registerAlias( TQObject *parent, const TQString &alias, const TQString &formatString,
+ const TQString &help, CommandType type, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
{
- QString lowerAlias = alias.lower();
+ TQString lowerAlias = alias.lower();
Kopete::Command *mCommand = new Kopete::Command( parent, lowerAlias, 0L, help, type,
formatString, minArgs, maxArgs, cut, pix );
p->pluginCommands[ parent ].insert( lowerAlias, mCommand );
}
-void Kopete::CommandHandler::unregisterAlias( QObject *parent, const QString &alias )
+void Kopete::CommandHandler::unregisterAlias( TQObject *parent, const TQString &alias )
{
if( p->pluginCommands[ parent ].find(alias) )
p->pluginCommands[ parent ].remove( alias );
}
-bool Kopete::CommandHandler::processMessage( const QString &msg, Kopete::ChatSession *manager )
+bool Kopete::CommandHandler::processMessage( const TQString &msg, Kopete::ChatSession *manager )
{
if( p->inCommand )
return false;
- QRegExp splitRx( QString::fromLatin1("^/([\\S]+)(.*)") );
- QString command;
- QString args;
+ TQRegExp splitRx( TQString::fromLatin1("^/([\\S]+)(.*)") );
+ TQString command;
+ TQString args;
if(splitRx.search(msg) != -1)
{
command = splitRx.cap(1);
@@ -222,21 +222,21 @@ bool Kopete::CommandHandler::processMessage( const QString &msg, Kopete::ChatSes
bool Kopete::CommandHandler::processMessage( Kopete::Message &msg, Kopete::ChatSession *manager )
{
- QString messageBody = msg.plainBody();
+ TQString messageBody = msg.plainBody();
return processMessage( messageBody, manager );
}
-void Kopete::CommandHandler::slotHelpCommand( const QString &args, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotHelpCommand( const TQString &args, Kopete::ChatSession *manager )
{
- QString output;
+ TQString output;
if( args.isEmpty() )
{
int commandCount = 0;
output = i18n( "Available Commands:\n" );
CommandList mCommands = commands( manager->myself()->protocol() );
- QDictIterator it( mCommands );
+ TQDictIterator it( mCommands );
for( ; it.current(); ++it )
{
output.append( it.current()->command().upper() + '\t' );
@@ -250,7 +250,7 @@ void Kopete::CommandHandler::slotHelpCommand( const QString &args, Kopete::ChatS
}
else
{
- QString command = parseArguments( args ).front().lower();
+ TQString command = parseArguments( args ).front().lower();
Kopete::Command *c = commands( manager->myself()->protocol() )[ command ];
if( c && !c->help().isNull() )
output = c->help();
@@ -262,7 +262,7 @@ void Kopete::CommandHandler::slotHelpCommand( const QString &args, Kopete::ChatS
manager->appendMessage(msg);
}
-void Kopete::CommandHandler::slotSayCommand( const QString &args, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotSayCommand( const TQString &args, Kopete::ChatSession *manager )
{
//Just say whatever is passed
Kopete::Message msg(manager->myself(), manager->members(), args,
@@ -270,23 +270,23 @@ void Kopete::CommandHandler::slotSayCommand( const QString &args, Kopete::ChatSe
manager->sendMessage(msg);
}
-void Kopete::CommandHandler::slotExecCommand( const QString &args, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotExecCommand( const TQString &args, Kopete::ChatSession *manager )
{
if( !args.isEmpty() )
{
KProcess *proc = 0L;
- if ( kapp->authorize( QString::fromLatin1( "shell_access" ) ) )
+ if ( kapp->authorize( TQString::fromLatin1( "shell_access" ) ) )
proc = new KProcess(manager);
if( proc )
{
- *proc << QString::fromLatin1("sh") << QString::fromLatin1("-c");
+ *proc << TQString::fromLatin1("sh") << TQString::fromLatin1("-c");
- QStringList argsList = parseArguments( args );
- if( argsList.front() == QString::fromLatin1("-o") )
+ TQStringList argsList = parseArguments( args );
+ if( argsList.front() == TQString::fromLatin1("-o") )
{
p->processMap.insert( proc, ManagerPair(manager, Kopete::Message::Outbound) );
- *proc << args.section(QRegExp(QString::fromLatin1("\\s+")), 1);
+ *proc << args.section(TQRegExp(TQString::fromLatin1("\\s+")), 1);
}
else
{
@@ -294,8 +294,8 @@ void Kopete::CommandHandler::slotExecCommand( const QString &args, Kopete::ChatS
*proc << args;
}
- connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), this, SLOT(slotExecReturnedData(KProcess *, char *, int)));
- connect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), this, SLOT(slotExecReturnedData(KProcess *, char *, int)));
+ connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(KProcess *, char *, int)));
+ connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(KProcess *, char *, int)));
proc->start( KProcess::NotifyOnExit, KProcess::AllOutput );
}
else
@@ -308,19 +308,19 @@ void Kopete::CommandHandler::slotExecCommand( const QString &args, Kopete::ChatS
}
}
-void Kopete::CommandHandler::slotClearCommand( const QString &, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotClearCommand( const TQString &, Kopete::ChatSession *manager )
{
if( manager->view() )
manager->view()->clear();
}
-void Kopete::CommandHandler::slotPartCommand( const QString &, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotPartCommand( const TQString &, Kopete::ChatSession *manager )
{
if( manager->view() )
manager->view()->closeView();
}
-void Kopete::CommandHandler::slotAwayCommand( const QString &args, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotAwayCommand( const TQString &args, Kopete::ChatSession *manager )
{
bool goAway = !manager->account()->isAway();
@@ -330,7 +330,7 @@ void Kopete::CommandHandler::slotAwayCommand( const QString &args, Kopete::ChatS
manager->account()->setAway( goAway, args );
}
-void Kopete::CommandHandler::slotAwayAllCommand( const QString &args, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotAwayAllCommand( const TQString &args, Kopete::ChatSession *manager )
{
if( manager->account()->isAway() )
Kopete::AccountManager::self()->setAvailableAll();
@@ -344,7 +344,7 @@ void Kopete::CommandHandler::slotAwayAllCommand( const QString &args, Kopete::Ch
}
}
-void Kopete::CommandHandler::slotCloseCommand( const QString &, Kopete::ChatSession *manager )
+void Kopete::CommandHandler::slotCloseCommand( const TQString &, Kopete::ChatSession *manager )
{
if( manager->view() )
manager->view()->closeView();
@@ -353,7 +353,7 @@ void Kopete::CommandHandler::slotCloseCommand( const QString &, Kopete::ChatSess
void Kopete::CommandHandler::slotExecReturnedData(KProcess *proc, char *buff, int bufflen )
{
kdDebug(14010) << k_funcinfo << endl;
- QString buffer = QString::fromLocal8Bit( buff, bufflen );
+ TQString buffer = TQString::fromLocal8Bit( buff, bufflen );
ManagerPair mgrPair = p->processMap[ proc ];
Kopete::Message msg( mgrPair.first->myself(), mgrPair.first->members(), buffer, mgrPair.second, Kopete::Message::PlainText );
if( mgrPair.second == Kopete::Message::Outbound )
@@ -368,10 +368,10 @@ void Kopete::CommandHandler::slotExecFinished(KProcess *proc)
p->processMap.remove( proc );
}
-QStringList Kopete::CommandHandler::parseArguments( const QString &args )
+TQStringList Kopete::CommandHandler::parseArguments( const TQString &args )
{
- QStringList arguments;
- QRegExp quotedArgs( QString::fromLatin1("\"(.*)\"") );
+ TQStringList arguments;
+ TQRegExp quotedArgs( TQString::fromLatin1("\"(.*)\"") );
quotedArgs.setMinimal( true );
if ( quotedArgs.search( args ) != -1 )
@@ -380,14 +380,14 @@ QStringList Kopete::CommandHandler::parseArguments( const QString &args )
arguments.append( quotedArgs.cap(i) );
}
- QStringList otherArgs = QStringList::split( QRegExp(QString::fromLatin1("\\s+")), args.section( quotedArgs, 0 ) );
- for( QStringList::Iterator it = otherArgs.begin(); it != otherArgs.end(); ++it )
+ TQStringList otherArgs = TQStringList::split( TQRegExp(TQString::fromLatin1("\\s+")), args.section( quotedArgs, 0 ) );
+ for( TQStringList::Iterator it = otherArgs.begin(); it != otherArgs.end(); ++it )
arguments.append( *it );
return arguments;
}
-bool Kopete::CommandHandler::commandHandled( const QString &command )
+bool Kopete::CommandHandler::commandHandled( const TQString &command )
{
for( PluginCommandMap::Iterator it = p->pluginCommands.begin(); it != p->pluginCommands.end(); ++it )
{
@@ -398,7 +398,7 @@ bool Kopete::CommandHandler::commandHandled( const QString &command )
return false;
}
-bool Kopete::CommandHandler::commandHandledByProtocol( const QString &command, Kopete::Protocol *protocol )
+bool Kopete::CommandHandler::commandHandledByProtocol( const TQString &command, Kopete::Protocol *protocol )
{
// Make sure the protocol is not NULL
if(!protocol)
@@ -406,7 +406,7 @@ bool Kopete::CommandHandler::commandHandledByProtocol( const QString &command, K
// Fetch the commands for the protocol
CommandList commandList = commands( protocol );
- QDictIterator it ( commandList );
+ TQDictIterator it ( commandList );
// Loop through commands and check if they match the supplied command
for( ; it.current(); ++it )
@@ -453,7 +453,7 @@ CommandList Kopete::CommandHandler::commands( Kopete::Protocol *protocol )
void Kopete::CommandHandler::addCommands( CommandList &from, CommandList &to, CommandType type )
{
- QDictIterator itDict( from );
+ TQDictIterator itDict( from );
for( ; itDict.current(); ++itDict )
{
if( !to[ itDict.currentKey() ] &&
@@ -469,17 +469,17 @@ void Kopete::CommandHandler::slotViewCreated( KopeteView *view )
void Kopete::CommandHandler::slotPluginLoaded( Kopete::Plugin *plugin )
{
- connect( plugin, SIGNAL( destroyed( QObject * ) ), this, SLOT( slotPluginDestroyed( QObject * ) ) );
+ connect( plugin, TQT_SIGNAL( destroyed( TQObject * ) ), this, TQT_SLOT( slotPluginDestroyed( TQObject * ) ) );
if( !p->pluginCommands.contains( plugin ) )
{
- //Create a QDict optomized for a larger # of commands, and case insensitive
+ //Create a TQDict optomized for a larger # of commands, and case insensitive
CommandList mCommands(31, false);
mCommands.setAutoDelete( true );
p->pluginCommands.insert( plugin, mCommands );
}
}
-void Kopete::CommandHandler::slotPluginDestroyed( QObject *plugin )
+void Kopete::CommandHandler::slotPluginDestroyed( TQObject *plugin )
{
p->pluginCommands.remove( static_cast(plugin) );
}
diff --git a/kopete/libkopete/kopetecommandhandler.h b/kopete/libkopete/kopetecommandhandler.h
index f763ace6..9632f872 100644
--- a/kopete/libkopete/kopetecommandhandler.h
+++ b/kopete/libkopete/kopetecommandhandler.h
@@ -17,7 +17,7 @@
#ifndef _KOPETECOMMANDHANDLER_H_
#define _KOPETECOMMANDHANDLER_H_
-#include
+#include
#include
#include "kopetemessage.h"
@@ -38,7 +38,7 @@ class Plugin;
class Protocol;
class Command;
-typedef QDict CommandList;
+typedef TQDict CommandList;
/**
* @author Jason Keirstead
@@ -76,7 +76,7 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param parent The plugin who owns this command
* @param command The command we want to handle, not including the '/'
* @param handlerSlot The slot used to handle the command. This slot must
- * accept two parameters, a QString of arguments, and a Kopete::ChatSession
+ * accept two parameters, a TQString of arguments, and a Kopete::ChatSession
* pointer to the manager under which the command was sent.
* @param help An optional help string to be shown when the user uses
* /help \
@@ -85,9 +85,9 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param cut a default keyboard shortcut
* @param pix icon name, the icon will be shown in menus
*/
- void registerCommand( QObject *parent, const QString &command, const char* handlerSlot,
- const QString &help = QString::null, uint minArgs = 0, int maxArgs = -1,
- const KShortcut &cut = 0, const QString &pix = QString::null );
+ void registerCommand( TQObject *parent, const TQString &command, const char* handlerSlot,
+ const TQString &help = TQString::null, uint minArgs = 0, int maxArgs = -1,
+ const KShortcut &cut = 0, const TQString &pix = TQString::null );
/**
* \brief Register a command alias.
@@ -106,15 +106,15 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param cut a default keyboard shortcut
* @param pix icon name, the icon will be shown in menus
*/
- void registerAlias( QObject *parent,
- const QString &alias,
- const QString &formatString,
- const QString &help = QString::null,
+ void registerAlias( TQObject *parent,
+ const TQString &alias,
+ const TQString &formatString,
+ const TQString &help = TQString::null,
CommandType = SystemAlias,
uint minArgs = 0,
int maxArgs = -1,
const KShortcut &cut = 0,
- const QString &pix = QString::null );
+ const TQString &pix = TQString::null );
/**
* \brief Unregister a command.
@@ -126,16 +126,16 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param parent The plugin who owns this command
* @param command The command to unload
*/
- void unregisterCommand( QObject *parent, const QString &command );
+ void unregisterCommand( TQObject *parent, const TQString &command );
/**
* \brief Unregister an alias.
*
- * \see unregisterCommand( QObject *parent, const QString &command )
+ * \see unregisterCommand( TQObject *parent, const TQString &command )
* @param parent The plugin who owns this alias
* @param alias The alais to unload
*/
- void unregisterAlias( QObject *parent, const QString &alias );
+ void unregisterAlias( TQObject *parent, const TQString &alias );
/**
* \brief Process a message to see if any commands should be handled
@@ -150,17 +150,17 @@ class KOPETE_EXPORT CommandHandler : public QObject
* \brief Process a message to see if any commands should be handled
*
* \see processMessage( Kopete::Message &msg, Kopete::ChatSession *manager)
- * \param msg A QString contain the message
+ * \param msg A TQString contain the message
* \param manager the Kopete::ChatSession who will own the message
* \return true if the command was handled, false if the command was not handled.
*/
- bool processMessage( const QString &msg, ChatSession *manager );
+ bool processMessage( const TQString &msg, ChatSession *manager );
/**
- * Parses a string of command arguments into a QStringList. Quoted
+ * Parses a string of command arguments into a TQStringList. Quoted
* blocks within the arguments string are treated as one argument.
*/
- static QStringList parseArguments( const QString &args );
+ static TQStringList parseArguments( const TQString &args );
/**
* \brief Check if a command is already handled
@@ -168,7 +168,7 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param command The command to check
* @return True if the command is already being handled, False if not
*/
- bool commandHandled( const QString &command );
+ bool commandHandled( const TQString &command );
/**
* \brief Check if a command is already handled by a spesific protocol
@@ -177,24 +177,24 @@ class KOPETE_EXPORT CommandHandler : public QObject
* @param protocol The protocol to check
* @return True if the command is already being handled, False if not
*/
- bool commandHandledByProtocol( const QString &command, Protocol *protocol);
+ bool commandHandledByProtocol( const TQString &command, Protocol *protocol);
private slots:
void slotPluginLoaded( Kopete::Plugin * );
- void slotPluginDestroyed( QObject * );
+ void slotPluginDestroyed( TQObject * );
void slotExecReturnedData(KProcess *proc, char *buff, int bufflen );
void slotExecFinished(KProcess *proc);
void slotViewCreated( KopeteView *view );
- void slotHelpCommand( const QString & args, Kopete::ChatSession *manager );
- void slotClearCommand( const QString & args, Kopete::ChatSession *manager );
- void slotPartCommand( const QString & args, Kopete::ChatSession *manager );
- void slotCloseCommand( const QString & args, Kopete::ChatSession *manager );
- //void slotMeCommand( const QString & args, Kopete::ChatSession *manager );
- void slotExecCommand( const QString & args, Kopete::ChatSession *manager );
- void slotAwayCommand( const QString & args, Kopete::ChatSession *manager );
- void slotAwayAllCommand( const QString & args, Kopete::ChatSession *manager );
- void slotSayCommand( const QString & args, Kopete::ChatSession *manager );
+ void slotHelpCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotClearCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotPartCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotCloseCommand( const TQString & args, Kopete::ChatSession *manager );
+ //void slotMeCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotExecCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotAwayCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotAwayAllCommand( const TQString & args, Kopete::ChatSession *manager );
+ void slotSayCommand( const TQString & args, Kopete::ChatSession *manager );
private:
/**
diff --git a/kopete/libkopete/kopetecontact.cpp b/kopete/libkopete/kopetecontact.cpp
index 15cb27df..546958ef 100644
--- a/kopete/libkopete/kopetecontact.cpp
+++ b/kopete/libkopete/kopetecontact.cpp
@@ -19,7 +19,7 @@
#include "kopetecontact.h"
-#include
+#include
#include
@@ -47,14 +47,14 @@
#include "kopeteemoticons.h"
//For the moving to another metacontact dialog
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
-#include
-#include
-#include
+#include
+#include
+#include
namespace Kopete {
@@ -68,19 +68,19 @@ public:
MetaContact *metaContact;
- QString contactId;
- QString icon;
+ TQString contactId;
+ TQString icon;
- QTime idleTimer;
+ TQTime idleTimer;
unsigned long int idleTime;
Kopete::ContactProperty::Map properties;
};
-Contact::Contact( Account *account, const QString &contactId,
- MetaContact *parent, const QString &icon )
- : QObject( parent )
+Contact::Contact( Account *account, const TQString &contactId,
+ MetaContact *parent, const TQString &icon )
+ : TQObject( parent )
{
d = new Private;
@@ -98,7 +98,7 @@ Contact::Contact( Account *account, const QString &contactId,
if ( account )
{
account->registerContact( this );
- connect( account, SIGNAL( isConnectedChanged() ), SLOT( slotAccountIsConnectedChanged() ) );
+ connect( account, TQT_SIGNAL( isConnectedChanged() ), TQT_SLOT( slotAccountIsConnectedChanged() ) );
}
// Need to check this because myself() may have no parent
@@ -106,8 +106,8 @@ Contact::Contact( Account *account, const QString &contactId,
// (ex: for unit tests or chat window style preview)
if( parent && protocol() )
{
- connect( parent, SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
- protocol(), SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
+ connect( parent, TQT_SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
+ protocol(), TQT_SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
parent->addContact( this );
}
@@ -146,7 +146,7 @@ void Contact::setOnlineStatus( const OnlineStatus &status )
if( oldStatus.status() == OnlineStatus::Offline &&
status.status() != OnlineStatus::Offline )
{
- setProperty( globalProps->onlineSince(), QDateTime::currentDateTime() );
+ setProperty( globalProps->onlineSince(), TQDateTime::currentDateTime() );
/*kdDebug(14010) << k_funcinfo << "REMOVING lastSeen property for " <<
d->displayName << endl;*/
removeProperty( globalProps->lastSeen() );
@@ -158,7 +158,7 @@ void Contact::setOnlineStatus( const OnlineStatus &status )
removeProperty( globalProps->onlineSince() );
/*kdDebug(14010) << k_funcinfo << "SETTING lastSeen property for " <<
d->displayName << endl;*/
- setProperty( globalProps->lastSeen(), QDateTime::currentDateTime() );
+ setProperty( globalProps->lastSeen(), TQDateTime::currentDateTime() );
}
if ( this == account()->myself() || account()->isConnected() )
@@ -177,7 +177,7 @@ void Contact::slotAccountIsConnectedChanged()
}
-void Contact::sendFile( const KURL &, const QString &, uint )
+void Contact::sendFile( const KURL &, const TQString &, uint )
{
kdWarning( 14010 ) << k_funcinfo << "Plugin "
<< protocol()->pluginId() << " has enabled file sending, "
@@ -199,18 +199,18 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
KPopupMenu *menu = new KPopupMenu();
// insert title
- QString titleText;
- QString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
+ TQString titleText;
+ TQString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
if( nick.isEmpty() )
- titleText = QString::fromLatin1( "%1 (%2)" ).arg( contactId(), onlineStatus().description() );
+ titleText = TQString::fromLatin1( "%1 (%2)" ).arg( contactId(), onlineStatus().description() );
else
- titleText = QString::fromLatin1( "%1 <%2> (%3)" ).arg( nick, contactId(), onlineStatus().description() );
+ titleText = TQString::fromLatin1( "%1 <%2> (%3)" ).arg( nick, contactId(), onlineStatus().description() );
menu->insertTitle( titleText );
if( metaContact() && metaContact()->isTemporary() && contactId() != account()->myself()->contactId() )
{
- KAction *actionAddContact = new KAction( i18n( "&Add to Your Contact List" ), QString::fromLatin1( "add_user" ),
- 0, this, SLOT( slotAddContact() ), menu, "actionAddContact" );
+ KAction *actionAddContact = new KAction( i18n( "&Add to Your Contact List" ), TQString::fromLatin1( "add_user" ),
+ 0, this, TQT_SLOT( slotAddContact() ), menu, "actionAddContact" );
actionAddContact->plug( menu );
menu->insertSeparator();
}
@@ -219,15 +219,15 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
bool reach = account()->isConnected() && isReachable();
bool myself = (this == account()->myself());
- KAction *actionSendMessage = KopeteStdAction::sendMessage( this, SLOT( sendMessage() ), menu, "actionSendMessage" );
+ KAction *actionSendMessage = KopeteStdAction::sendMessage( this, TQT_SLOT( sendMessage() ), menu, "actionSendMessage" );
actionSendMessage->setEnabled( reach && !myself );
actionSendMessage->plug( menu );
- KAction *actionChat = KopeteStdAction::chat( this, SLOT( startChat() ), menu, "actionChat" );
+ KAction *actionChat = KopeteStdAction::chat( this, TQT_SLOT( startChat() ), menu, "actionChat" );
actionChat->setEnabled( reach && !myself );
actionChat->plug( menu );
- KAction *actionSendFile = KopeteStdAction::sendFile( this, SLOT( sendFile() ), menu, "actionSendFile" );
+ KAction *actionSendFile = KopeteStdAction::sendFile( this, TQT_SLOT( sendFile() ), menu, "actionSendFile" );
actionSendFile->setEnabled( reach && d->fileCapable && !myself );
actionSendFile->plug( menu );
@@ -235,7 +235,7 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
// through the use of the customContextMenuActions() function
// Get the custom actions from the protocols ( pure virtual function )
- QPtrList *customActions = customContextMenuActions( manager );
+ TQPtrList *customActions = customContextMenuActions( manager );
if( customActions && !customActions->isEmpty() )
{
menu->insertSeparator();
@@ -248,19 +248,19 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
menu->insertSeparator();
if( metaContact() && !metaContact()->isTemporary() )
- KopeteStdAction::changeMetaContact( this, SLOT( changeMetaContact() ), menu, "actionChangeMetaContact" )->plug( menu );
+ KopeteStdAction::changeMetaContact( this, TQT_SLOT( changeMetaContact() ), menu, "actionChangeMetaContact" )->plug( menu );
- KopeteStdAction::contactInfo( this, SLOT( slotUserInfo() ), menu, "actionUserInfo" )->plug( menu );
+ KopeteStdAction::contactInfo( this, TQT_SLOT( slotUserInfo() ), menu, "actionUserInfo" )->plug( menu );
#if 0 //this is not fully implemented yet (and doesn't work). disable for now - Olivier 2005-01-11
if ( account()->isBlocked( d->contactId ) )
- KopeteStdAction::unblockContact( this, SLOT( slotUnblock() ), menu, "actionUnblockContact" )->plug( menu );
+ KopeteStdAction::unblockContact( this, TQT_SLOT( slotUnblock() ), menu, "actionUnblockContact" )->plug( menu );
else
- KopeteStdAction::blockContact( this, SLOT( slotBlock() ), menu, "actionBlockContact" )->plug( menu );
+ KopeteStdAction::blockContact( this, TQT_SLOT( slotBlock() ), menu, "actionBlockContact" )->plug( menu );
#endif
if( metaContact() && !metaContact()->isTemporary() )
- KopeteStdAction::deleteContact( this, SLOT( slotDelete() ), menu, "actionDeleteContact" )->plug( menu );
+ KopeteStdAction::deleteContact( this, TQT_SLOT( slotDelete() ), menu, "actionDeleteContact" )->plug( menu );
return menu;
}
@@ -270,19 +270,19 @@ void Contact::changeMetaContact()
KDialogBase *moveDialog = new KDialogBase( Kopete::UI::Global::mainWidget(), "moveDialog", true, i18n( "Move Contact" ),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true );
- QVBox *w = new QVBox( moveDialog );
+ TQVBox *w = new TQVBox( moveDialog );
w->setSpacing( KDialog::spacingHint() );
Kopete::UI::MetaContactSelectorWidget *selector = new Kopete::UI::MetaContactSelectorWidget(w);
selector->setLabelMessage(i18n( "Select the meta contact to which you want to move this contact:" ));
// exclude this metacontact as a target metacontact for the move
selector->excludeMetaContact( metaContact() );
- QCheckBox *chkCreateNew = new QCheckBox( i18n( "Create a new metacontact for this contact" ), w );
- QWhatsThis::add( chkCreateNew , i18n( "If you select this option, a new metacontact will be created in the top-level group "
+ TQCheckBox *chkCreateNew = new TQCheckBox( i18n( "Create a new metacontact for this contact" ), w );
+ TQWhatsThis::add( chkCreateNew , i18n( "If you select this option, a new metacontact will be created in the top-level group "
"with the name of this contact and the contact will be moved to it." ) );
- QObject::connect( chkCreateNew , SIGNAL( toggled(bool) ) , selector , SLOT ( setDisabled(bool) ) ) ;
+ TQObject::connect( chkCreateNew , TQT_SIGNAL( toggled(bool) ) , selector , TQT_SLOT ( setDisabled(bool) ) ) ;
moveDialog->setMainWidget(w);
- if( moveDialog->exec() == QDialog::Accepted )
+ if( moveDialog->exec() == TQDialog::Accepted )
{
Kopete::MetaContact *mc = selector->metaContact();
if(chkCreateNew->isChecked())
@@ -314,14 +314,14 @@ void Contact::setMetaContact( MetaContact *m )
{ //only one contact, including this one, that mean the contact will be empty efter the move
result = KMessageBox::questionYesNoCancel( Kopete::UI::Global::mainWidget(), i18n( "You are moving the contact `%1' to the meta contact `%2'.\n"
"`%3' will be empty afterwards. Do you want to delete this contact?" )
- .arg(contactId(), m ? m->displayName() : QString::null, old->displayName())
- , i18n( "Move Contact" ), KStdGuiItem::del(), i18n( "&Keep" ) , QString::fromLatin1("delete_old_contact_when_move") );
+ .arg(contactId(), m ? m->displayName() : TQString::null, old->displayName())
+ , i18n( "Move Contact" ), KStdGuiItem::del(), i18n( "&Keep" ) , TQString::fromLatin1("delete_old_contact_when_move") );
if(result==KMessageBox::Cancel)
return;
}
old->removeContact( this );
- disconnect( old, SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
- protocol(), SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
+ disconnect( old, TQT_SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
+ protocol(), TQT_SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
if(result==KMessageBox::Yes)
{
@@ -346,19 +346,19 @@ void Contact::setMetaContact( MetaContact *m )
// between adding completely new contacts (which should be written to kabc) and restoring upon restart
// (where no write is needed).
KABCPersistence::self()->write( m );
- connect( d->metaContact, SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
- protocol(), SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
+ connect( d->metaContact, TQT_SIGNAL( aboutToSave( Kopete::MetaContact * ) ),
+ protocol(), TQT_SLOT( slotMetaContactAboutToSave( Kopete::MetaContact * ) ) );
}
sync();
}
-void Contact::serialize( QMap &/*serializedData*/,
- QMap & /* addressBookData */ )
+void Contact::serialize( TQMap &/*serializedData*/,
+ TQMap & /* addressBookData */ )
{
}
-void Contact::serializeProperties(QMap &serializedData)
+void Contact::serializeProperties(TQMap &serializedData)
{
Kopete::ContactProperty::Map::ConstIterator it;// = d->properties.ConstIterator;
@@ -367,8 +367,8 @@ void Contact::serializeProperties(QMap &serializedData)
if (!it.data().tmpl().persistent())
continue;
- QVariant val = it.data().value();
- QString key = QString::fromLatin1("prop_%1_%2").arg(QString::fromLatin1(val.typeName()), it.key());
+ TQVariant val = it.data().value();
+ TQString key = TQString::fromLatin1("prop_%1_%2").arg(TQString::fromLatin1(val.typeName()), it.key());
serializedData[key] = val.toString();
@@ -376,28 +376,28 @@ void Contact::serializeProperties(QMap &serializedData)
} // end serializeProperties()
void Contact::deserializeProperties(
- QMap &serializedData )
+ TQMap &serializedData )
{
- QMap::ConstIterator it;
+ TQMap::ConstIterator it;
for ( it=serializedData.begin(); it != serializedData.end(); ++it )
{
- QString key = it.key();
+ TQString key = it.key();
- if ( !key.startsWith( QString::fromLatin1("prop_") ) ) // avoid parsing other serialized data
+ if ( !key.startsWith( TQString::fromLatin1("prop_") ) ) // avoid parsing other serialized data
continue;
- QStringList keyList = QStringList::split( QChar('_'), key, false );
+ TQStringList keyList = TQStringList::split( TQChar('_'), key, false );
if( keyList.count() < 3 ) // invalid key, not enough parts in string "prop_X_Y"
continue;
key = keyList[2]; // overwrite key var with the real key name this property has
- QString type( keyList[1] ); // needed for QVariant casting
+ TQString type( keyList[1] ); // needed for TQVariant casting
- QVariant variant( it.data() );
- if( !variant.cast(QVariant::nameToType(type.latin1())) )
+ TQVariant variant( it.data() );
+ if( !variant.cast(TQVariant::nameToType(type.latin1())) )
{
kdDebug(14010) << k_funcinfo <<
- "Casting QVariant to needed type FAILED" <<
+ "Casting TQVariant to needed type FAILED" <<
"key=" << key << ", type=" << type << endl;
continue;
}
@@ -425,14 +425,14 @@ bool Contact::isReachable()
void Contact::startChat()
{
- KopeteView *v=manager( CanCreate )->view(true, QString::fromLatin1("kopete_chatwindow") );
+ KopeteView *v=manager( CanCreate )->view(true, TQString::fromLatin1("kopete_chatwindow") );
if(v)
v->raise(true);
}
void Contact::sendMessage()
{
- KopeteView *v=manager( CanCreate )->view(true, QString::fromLatin1("kopete_emailwindow") );
+ KopeteView *v=manager( CanCreate )->view(true, TQString::fromLatin1("kopete_emailwindow") );
if(v)
v->raise(true);
}
@@ -458,8 +458,8 @@ void Contact::slotDelete()
{
if ( KMessageBox::warningContinueCancel( Kopete::UI::Global::mainWidget(),
i18n( "Are you sure you want to remove the contact '%1' from your contact list?" ).
- arg( d->contactId ), i18n( "Remove Contact" ), KGuiItem(i18n("Remove"), QString::fromLatin1("delete_user") ),
- QString::fromLatin1("askRemoveContact"), KMessageBox::Notify | KMessageBox::Dangerous )
+ arg( d->contactId ), i18n( "Remove Contact" ), KGuiItem(i18n("Remove"), TQString::fromLatin1("delete_user") ),
+ TQString::fromLatin1("askRemoveContact"), KMessageBox::Notify | KMessageBox::Dangerous )
== KMessageBox::Continue )
{
deleteContact();
@@ -478,7 +478,7 @@ MetaContact * Contact::metaContact() const
return d->metaContact;
}
-QString Contact::contactId() const
+TQString Contact::contactId() const
{
return d->contactId;
}
@@ -500,23 +500,23 @@ void Contact::sync(unsigned int)
/* Default implementation does nothing */
}
-QString& Contact::icon() const
+TQString& Contact::icon() const
{
return d->icon;
}
-void Contact::setIcon( const QString& icon )
+void Contact::setIcon( const TQString& icon )
{
d->icon = icon;
return;
}
-QPtrList *Contact::customContextMenuActions()
+TQPtrList *Contact::customContextMenuActions()
{
return 0L;
}
-QPtrList *Contact::customContextMenuActions( ChatSession * /* manager */ )
+TQPtrList *Contact::customContextMenuActions( ChatSession * /* manager */ )
{
return customContextMenuActions();
}
@@ -568,17 +568,17 @@ void Contact::setIdleTime( unsigned long int t )
}
-QStringList Contact::properties() const
+TQStringList Contact::properties() const
{
return d->properties.keys();
}
-bool Contact::hasProperty(const QString &key) const
+bool Contact::hasProperty(const TQString &key) const
{
return d->properties.contains(key);
}
-const ContactProperty &Contact::property(const QString &key) const
+const ContactProperty &Contact::property(const TQString &key) const
{
if(hasProperty(key))
return d->properties[key];
@@ -597,7 +597,7 @@ const Kopete::ContactProperty &Contact::property(
void Contact::setProperty(const Kopete::ContactPropertyTmpl &tmpl,
- const QVariant &value)
+ const TQVariant &value)
{
if(tmpl.isNull() || tmpl.key().isEmpty())
{
@@ -606,13 +606,13 @@ void Contact::setProperty(const Kopete::ContactPropertyTmpl &tmpl,
return;
}
- if(value.isNull() || value.canCast(QVariant::String) && value.toString().isEmpty())
+ if(value.isNull() || value.canCast(TQVariant::String) && value.toString().isEmpty())
{
removeProperty(tmpl);
}
else
{
- QVariant oldValue = property(tmpl.key()).value();
+ TQVariant oldValue = property(tmpl.key()).value();
if(oldValue != value)
{
@@ -629,29 +629,29 @@ void Contact::removeProperty(const Kopete::ContactPropertyTmpl &tmpl)
if(!tmpl.isNull() && !tmpl.key().isEmpty())
{
- QVariant oldValue = property(tmpl.key()).value();
+ TQVariant oldValue = property(tmpl.key()).value();
d->properties.remove(tmpl.key());
- emit propertyChanged(this, tmpl.key(), oldValue, QVariant());
+ emit propertyChanged(this, tmpl.key(), oldValue, TQVariant());
}
}
-QString Contact::toolTip() const
+TQString Contact::toolTip() const
{
Kopete::ContactProperty p;
- QString tip;
- QStringList shownProps = KopetePrefs::prefs()->toolTipContents();
+ TQString tip;
+ TQStringList shownProps = KopetePrefs::prefs()->toolTipContents();
// --------------------------------------------------------------------------
// Fixed part of tooltip
- QString iconName = QString::fromLatin1("kopete-contact-icon:%1:%2:%3")
+ TQString iconName = TQString::fromLatin1("kopete-contact-icon:%1:%2:%3")
.arg( KURL::encode_string( protocol()->pluginId() ),
KURL::encode_string( account()->accountId() ),
KURL::encode_string( contactId() ) );
// TODO: the nickname should be a configurable properties, like others. -Olivier
- QString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
+ TQString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
if ( nick.isEmpty() )
{
tip = i18n( "DISPLAY NAME
CONTACT STATUS",
@@ -671,39 +671,39 @@ QString Contact::toolTip() const
// --------------------------------------------------------------------------
// Configurable part of tooltip
- for(QStringList::Iterator it=shownProps.begin(); it!=shownProps.end(); ++it)
+ for(TQStringList::Iterator it=shownProps.begin(); it!=shownProps.end(); ++it)
{
- if((*it) == QString::fromLatin1("FormattedName"))
+ if((*it) == TQString::fromLatin1("FormattedName"))
{
- QString name = formattedName();
+ TQString name = formattedName();
if(!name.isEmpty())
{
tip += i18n("
Full Name: FORMATTED NAME",
- "
Full Name: %1").arg(QStyleSheet::escape(name));
+ "
Full Name: %1").arg(TQStyleSheet::escape(name));
}
}
- else if ((*it) == QString::fromLatin1("FormattedIdleTime"))
+ else if ((*it) == TQString::fromLatin1("FormattedIdleTime"))
{
- QString time = formattedIdleTime();
+ TQString time = formattedIdleTime();
if(!time.isEmpty())
{
tip += i18n("
Idle: FORMATTED IDLE TIME",
"
Idle: %1").arg(time);
}
}
- else if ((*it) == QString::fromLatin1("homePage"))
+ else if ((*it) == TQString::fromLatin1("homePage"))
{
- QString url = property(*it).value().toString();
+ TQString url = property(*it).value().toString();
if(!url.isEmpty())
{
tip += i18n("
Home Page: FORMATTED URL",
"
Home Page: %2").
- arg( KURL::encode_string( url ), Kopete::Message::escape( QStyleSheet::escape(url) ) );
+ arg( KURL::encode_string( url ), Kopete::Message::escape( TQStyleSheet::escape(url) ) );
}
}
- else if ((*it) == QString::fromLatin1("awayMessage"))
+ else if ((*it) == TQString::fromLatin1("awayMessage"))
{
- QString awaymsg = property(*it).value().toString();
+ TQString awaymsg = property(*it).value().toString();
if(!awaymsg.isEmpty())
{
tip += i18n("
Away Message: FORMATTED AWAY MESSAGE",
@@ -715,20 +715,20 @@ QString Contact::toolTip() const
p = property(*it);
if(!p.isNull())
{
- QVariant val = p.value();
- QString valueText;
+ TQVariant val = p.value();
+ TQString valueText;
switch(val.type())
{
- case QVariant::DateTime:
+ case TQVariant::DateTime:
valueText = KGlobal::locale()->formatDateTime(val.toDateTime());
valueText = Kopete::Message::escape( valueText );
break;
- case QVariant::Date:
+ case TQVariant::Date:
valueText = KGlobal::locale()->formatDate(val.toDate());
valueText = Kopete::Message::escape( valueText );
break;
- case QVariant::Time:
+ case TQVariant::Time:
valueText = KGlobal::locale()->formatTime(val.toTime());
valueText = Kopete::Message::escape( valueText );
break;
@@ -745,7 +745,7 @@ QString Contact::toolTip() const
tip += i18n("
PROPERTY LABEL: PROPERTY VALUE",
"
%2: %1").
- arg( valueText, QStyleSheet::escape(p.tmpl().label()) );
+ arg( valueText, TQStyleSheet::escape(p.tmpl().label()) );
}
}
}
@@ -753,16 +753,16 @@ QString Contact::toolTip() const
return tip;
}
-QString Kopete::Contact::formattedName() const
+TQString Kopete::Contact::formattedName() const
{
- if( hasProperty(QString::fromLatin1("FormattedName")) )
- return property(QString::fromLatin1("FormattedName")).value().toString();
+ if( hasProperty(TQString::fromLatin1("FormattedName")) )
+ return property(TQString::fromLatin1("FormattedName")).value().toString();
- QString ret;
+ TQString ret;
Kopete::ContactProperty first, last;
- first = property(QString::fromLatin1("firstName"));
- last = property(QString::fromLatin1("lastName"));
+ first = property(TQString::fromLatin1("firstName"));
+ last = property(TQString::fromLatin1("lastName"));
if(!first.isNull())
{
if(!last.isNull()) // contact has both first and last name
@@ -784,9 +784,9 @@ QString Kopete::Contact::formattedName() const
return ret;
}
-QString Kopete::Contact::formattedIdleTime() const
+TQString Kopete::Contact::formattedIdleTime() const
{
- QString ret;
+ TQString ret;
unsigned long int leftTime = idleTime();
if ( leftTime > 0 )
@@ -837,14 +837,14 @@ void Kopete::Contact::slotUnblock()
account()->unblock( d->contactId );
}
-void Kopete::Contact::setNickName( const QString &name )
+void Kopete::Contact::setNickName( const TQString &name )
{
setProperty( Kopete::Global::Properties::self()->nickName(), name );
}
-QString Kopete::Contact::nickName() const
+TQString Kopete::Contact::nickName() const
{
- QString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
+ TQString nick = property( Kopete::Global::Properties::self()->nickName() ).value().toString();
if( !nick.isEmpty() )
return nick;
diff --git a/kopete/libkopete/kopetecontact.h b/kopete/libkopete/kopetecontact.h
index 8f02bfc2..e093c5eb 100644
--- a/kopete/libkopete/kopetecontact.h
+++ b/kopete/libkopete/kopetecontact.h
@@ -20,7 +20,7 @@
#ifndef __KOPETECONTACT_H__
#define __KOPETECONTACT_H__
-#include
+#include
#include
#include
#include "kopeteglobal.h"
@@ -41,7 +41,7 @@ class OnlineStatus;
class Plugin;
class Protocol;
class Account;
-typedef QPtrList GroupList;
+typedef TQPtrList GroupList;
/**
* @author Duncan Mac-Vicar P.
@@ -56,16 +56,16 @@ class KOPETE_EXPORT Contact : public QObject
Q_OBJECT
Q_ENUMS( CanCreateFlags )
- Q_PROPERTY( QString formattedName READ formattedName )
- Q_PROPERTY( QString formattedIdleTime READ formattedIdleTime )
+ Q_PROPERTY( TQString formattedName READ formattedName )
+ Q_PROPERTY( TQString formattedIdleTime READ formattedIdleTime )
Q_PROPERTY( bool isOnline READ isOnline )
Q_PROPERTY( bool fileCapable READ isFileCapable WRITE setFileCapable )
Q_PROPERTY( bool canAcceptFiles READ canAcceptFiles )
//Q_PROPERTY( bool isReachable READ isReachable )
- Q_PROPERTY( QString contactId READ contactId )
- Q_PROPERTY( QString icon READ icon WRITE setIcon )
- Q_PROPERTY( QString toolTip READ toolTip )
- Q_PROPERTY( QString nickName READ nickName WRITE setNickName )
+ Q_PROPERTY( TQString contactId READ contactId )
+ Q_PROPERTY( TQString icon READ icon WRITE setIcon )
+ Q_PROPERTY( TQString toolTip READ toolTip )
+ Q_PROPERTY( TQString nickName READ nickName WRITE setNickName )
//Q_PROPERTY( unsigned long idleTime READ idleTime WRITE setIdleTime )
public:
@@ -86,8 +86,8 @@ public:
* @param parent is the parent @ref MetaContact this Contact is part of
* @param icon is an optional icon
*/
- Contact( Account *account, const QString &id, MetaContact *parent,
- const QString &icon = QString::null );
+ Contact( Account *account, const TQString &id, MetaContact *parent,
+ const TQString &icon = TQString::null );
~Contact();
@@ -110,7 +110,7 @@ public:
*
* @return The unique id of the contact
*/
- QString contactId() const;
+ TQString contactId() const;
/**
* \brief Get the protocol that the contact belongs to.
@@ -172,17 +172,17 @@ public:
*
* Most plugins don't need more than these fields, so they only need
* to set the address book fields themselves. If you have nothing to
- * save at all you can clear the QMap, an empty map is treated as
+ * save at all you can clear the TQMap, an empty map is treated as
* 'nothing to save'.
*
- * The provided addressBookFields QMap contains the index field as
+ * The provided addressBookFields TQMap contains the index field as
* marked with @ref Plugin::addAddressBookField() with the
- * contact id as value. If no index field is available the QMap is
+ * contact id as value. If no index field is available the TQMap is
* simply passed as an empty map.
*
* @sa Protocol::deserializeContact
*/
- virtual void serialize( QMap &serializedData, QMap &addressBookData );
+ virtual void serialize( TQMap &serializedData, TQMap &addressBookData );
/**
* @brief Serialize the contacts persistent properties for storage in the contact list.
@@ -192,12 +192,12 @@ public:
* In contrary to @ref serialize() this does not need to be reimplemented.
*
*/
- void serializeProperties(QMap &serializedData);
+ void serializeProperties(TQMap &serializedData);
/**
* @brief Deserialize the contacts persistent properties
*/
- void deserializeProperties(QMap &serializedData);
+ void deserializeProperties(TQMap &serializedData);
/**
* @brief Get the online status of the contact
@@ -222,12 +222,12 @@ public:
* @return Collection of menu items to be show on the context menu
* @todo if possible, try to use KXMLGUI
*/
- virtual QPtrList *customContextMenuActions();
+ virtual TQPtrList *customContextMenuActions();
/**
* @todo What is this function for ?
*/
- virtual QPtrList *customContextMenuActions( ChatSession *manager );
+ virtual TQPtrList *customContextMenuActions( ChatSession *manager );
/**
* @brief Get the Context Menu for this contact
@@ -288,7 +288,7 @@ public:
* If null, the protocol icon need to be used.
* The icon is not colored, nor has the status icon overloaded
*/
- QString& icon() const;
+ TQString& icon() const;
/**
* @brief Change the icon to use for this contact
@@ -298,7 +298,7 @@ public:
*
* if you want to go back to the protocol icon, set a null string.
*/
- void setIcon( const QString& icon );
+ void setIcon( const TQString& icon );
/**
* \brief Get the time (in seconds) this contact has been idle
@@ -322,25 +322,25 @@ public:
void setIdleTime(unsigned long int);
/**
- * @return A QStringList containing all property keys
+ * @return A TQStringList containing all property keys
**/
- QStringList properties() const;
+ TQStringList properties() const;
/**
* Check for existance of a certain property stored
* using "key".
* \param key the property to check for
**/
- bool hasProperty(const QString &key) const;
+ bool hasProperty(const TQString &key) const;
/**
* \brief Get the value of a property with key "key".
*
- * If you don't know the type of the returned QVariant, you will need
+ * If you don't know the type of the returned TQVariant, you will need
* to check for it.
* \return the value of the property
**/
- const Kopete::ContactProperty &property(const QString &key) const;
+ const Kopete::ContactProperty &property(const TQString &key) const;
const Kopete::ContactProperty &property(const Kopete::ContactPropertyTmpl &tmpl) const;
/**
@@ -350,27 +350,27 @@ public:
* taken from this one
* @param value The value to store
*
- * \note Setting a NULL value or an empty QString castable value
+ * \note Setting a NULL value or an empty TQString castable value
* removes the property if it already existed.
* Don't abuse this for property-removal, instead use
* @ref removeProperty() if you want to remove on purpose.
* The Removal is done to clean up the list of properties and to purge them
* from UI.
**/
- void setProperty(const Kopete::ContactPropertyTmpl &tmpl, const QVariant &value);
+ void setProperty(const Kopete::ContactPropertyTmpl &tmpl, const TQVariant &value);
/**
* \brief Convenience method to set the nickName property to the specified value
* @param name The nickname to set
*/
- void setNickName( const QString &name );
+ void setNickName( const TQString &name );
/**
* \brief Convenience method to retrieve the nickName property.
*
* This method will return the contactId if there has been no nickName property set
*/
- QString nickName() const;
+ TQString nickName() const;
/**
* \brief Remove a property if it exists
@@ -384,20 +384,20 @@ public:
* Makes use of formattedName() and formattedIdleTime().
* \return an RTF tooltip depending on KopetePrefs settings
**/
- QString toolTip() const;
+ TQString toolTip() const;
/**
* Returns a formatted string of "firstName" and/or "lastName" properties
* if present.
* Suitable for GUI display
**/
- QString formattedName() const;
+ TQString formattedName() const;
/**
* Returns a formatted string of idleTime().
* Suitable for GUI display
**/
- QString formattedIdleTime() const;
+ TQString formattedIdleTime() const;
/**
* used in @ref sync()
@@ -475,7 +475,7 @@ public slots:
* file size (such as over asocket
*/
virtual void sendFile( const KURL &sourceURL = KURL(),
- const QString &fileName = QString::null, uint fileSize = 0L );
+ const TQString &fileName = TQString::null, uint fileSize = 0L );
private slots:
@@ -532,11 +532,11 @@ signals:
* One of the contact's properties has changed.
* @param contact this contact, useful for listening to signals from more than one contact
* @param key the key whose value has changed
- * @param oldValue the value before the change, or an invalid QVariant if the property is new
- * @param newValue the value after the change, or an invalid QVariant if the property was removed
+ * @param oldValue the value before the change, or an invalid TQVariant if the property is new
+ * @param newValue the value after the change, or an invalid TQVariant if the property was removed
*/
- void propertyChanged( Kopete::Contact *contact, const QString &key,
- const QVariant &oldValue, const QVariant &newValue );
+ void propertyChanged( Kopete::Contact *contact, const TQString &key,
+ const TQVariant &oldValue, const TQVariant &newValue );
protected:
virtual void virtual_hook(uint id, void *data);
diff --git a/kopete/libkopete/kopetecontactlist.cpp b/kopete/libkopete/kopetecontactlist.cpp
index 9aab9f2f..6e33f257 100644
--- a/kopete/libkopete/kopetecontactlist.cpp
+++ b/kopete/libkopete/kopetecontactlist.cpp
@@ -20,9 +20,9 @@
#include "kopetecontactlist.h"
-#include
-#include