summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/motionautoaway
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/plugins/motionautoaway
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/motionautoaway')
-rw-r--r--kopete/plugins/motionautoaway/motionawayplugin.cpp16
-rw-r--r--kopete/plugins/motionautoaway/motionawayplugin.h18
-rw-r--r--kopete/plugins/motionautoaway/motionawaypreferences.cpp16
-rw-r--r--kopete/plugins/motionautoaway/motionawaypreferences.h2
4 files changed, 26 insertions, 26 deletions
diff --git a/kopete/plugins/motionautoaway/motionawayplugin.cpp b/kopete/plugins/motionautoaway/motionawayplugin.cpp
index d534a186..8dbd8853 100644
--- a/kopete/plugins/motionautoaway/motionawayplugin.cpp
+++ b/kopete/plugins/motionautoaway/motionawayplugin.cpp
@@ -36,7 +36,7 @@
#include <time.h>
#include <unistd.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -92,7 +92,7 @@ typedef __signed__ long long __s64;
typedef KGenericFactory<MotionAwayPlugin> MotionAwayPluginFactory;
K_EXPORT_COMPONENT_FACTORY( kopete_motionaway, MotionAwayPluginFactory( "kopete_motionaway" ) )
-MotionAwayPlugin::MotionAwayPlugin( QObject *parent, const char *name, const QStringList & /* args */ )
+MotionAwayPlugin::MotionAwayPlugin( TQObject *parent, const char *name, const TQStringList & /* args */ )
: Kopete::Plugin( MotionAwayPluginFactory::instance(), parent, name )
{
kdDebug(14305) << k_funcinfo << "Called." << endl;
@@ -106,11 +106,11 @@ MotionAwayPlugin::MotionAwayPlugin( QObject *parent, const char *name, const QSt
/* We haven't took the first picture yet */
m_tookFirst = false;
- m_captureTimer = new QTimer(this);
- m_awayTimer = new QTimer(this);
+ m_captureTimer = new TQTimer(this);
+ m_awayTimer = new TQTimer(this);
- connect( m_captureTimer, SIGNAL(timeout()), this, SLOT(slotCapture()) );
- connect( m_awayTimer, SIGNAL(timeout()), this, SLOT(slotTimeout()) );
+ connect( m_captureTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCapture()) );
+ connect( m_awayTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()) );
signal(SIGCHLD, SIG_IGN);
@@ -143,7 +143,7 @@ MotionAwayPlugin::MotionAwayPlugin( QObject *parent, const char *name, const QSt
m_awayTimer->start( awayTimeout * 60 * 1000 );
}
loadSettings();
- connect(this, SIGNAL(settingsChanged()), this, SLOT( loadSettings() ) );
+ connect(this, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT( loadSettings() ) );
}
MotionAwayPlugin::~MotionAwayPlugin()
@@ -163,7 +163,7 @@ void MotionAwayPlugin::loadSettings(){
m_awayTimer->changeInterval(awayTimeout * 60 * 1000);
}
-int MotionAwayPlugin::getImage(int _dev, QByteArray &_image, int _width, int _height, int _input, int _norm, int _fmt)
+int MotionAwayPlugin::getImage(int _dev, TQByteArray &_image, int _width, int _height, int _input, int _norm, int _fmt)
{
struct video_capability vid_caps;
struct video_channel vid_chnl;
diff --git a/kopete/plugins/motionautoaway/motionawayplugin.h b/kopete/plugins/motionautoaway/motionawayplugin.h
index 98e7e343..84172f33 100644
--- a/kopete/plugins/motionautoaway/motionawayplugin.h
+++ b/kopete/plugins/motionautoaway/motionawayplugin.h
@@ -38,7 +38,7 @@ class MotionAwayPlugin : public Kopete::Plugin
Q_OBJECT
public:
- MotionAwayPlugin( QObject *parent, const char *name, const QStringList &args );
+ MotionAwayPlugin( TQObject *parent, const char *name, const TQStringList &args );
~MotionAwayPlugin();
public slots:
@@ -50,12 +50,12 @@ public slots:
private:
int awayTimeout;
bool becomeAvailableWithActivity;
- QString videoDevice;
+ TQString videoDevice;
- QTimer *m_captureTimer;
- QTimer *m_awayTimer;
+ TQTimer *m_captureTimer;
+ TQTimer *m_awayTimer;
- int getImage(int, QByteArray& ,int ,int ,int ,int ,int );
+ int getImage(int, TQByteArray& ,int ,int ,int ,int ,int );
bool m_tookFirst;
bool m_wentAway;
@@ -70,10 +70,10 @@ private:
int shots;
int m_gap;
- QByteArray m_imageRef;
- QByteArray m_imageNew;
- QByteArray m_imageOld;
- QByteArray m_imageOut;
+ TQByteArray m_imageRef;
+ TQByteArray m_imageNew;
+ TQByteArray m_imageOld;
+ TQByteArray m_imageOut;
/*
time_t currenttimep;
diff --git a/kopete/plugins/motionautoaway/motionawaypreferences.cpp b/kopete/plugins/motionautoaway/motionawaypreferences.cpp
index a4962c5c..889d4d30 100644
--- a/kopete/plugins/motionautoaway/motionawaypreferences.cpp
+++ b/kopete/plugins/motionautoaway/motionawaypreferences.cpp
@@ -15,9 +15,9 @@
*************************************************************************
*/
-#include <qlayout.h>
-#include <qobject.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqobject.h>
+#include <tqcheckbox.h>
#include <kgenericfactory.h>
#include <klineedit.h>
@@ -30,15 +30,15 @@
typedef KGenericFactory<MotionAwayPreferences> MotionAwayPreferencesFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_motionaway, MotionAwayPreferencesFactory("kcm_kopete_motionaway"))
-MotionAwayPreferences::MotionAwayPreferences(QWidget *parent, const char* /*name*/, const QStringList &args)
+MotionAwayPreferences::MotionAwayPreferences(TQWidget *parent, const char* /*name*/, const TQStringList &args)
: KCModule(MotionAwayPreferencesFactory::instance(), parent, args)
{
// Add actuall widget generated from ui file.
- ( new QVBoxLayout( this ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) )->setAutoAdd( true );
preferencesDialog = new motionawayPrefsUI(this);
- connect(preferencesDialog->BecomeAvailableWithActivity, SIGNAL(toggled(bool)), this, SLOT(slotWidgetModified()));
- connect(preferencesDialog->AwayTimeout, SIGNAL(valueChanged(int)), this, SLOT(slotWidgetModified()));
- connect(preferencesDialog->VideoDevice, SIGNAL(textChanged(const QString &)), this, SLOT(slotWidgetModified()));
+ connect(preferencesDialog->BecomeAvailableWithActivity, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotWidgetModified()));
+ connect(preferencesDialog->AwayTimeout, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotWidgetModified()));
+ connect(preferencesDialog->VideoDevice, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotWidgetModified()));
load();
}
diff --git a/kopete/plugins/motionautoaway/motionawaypreferences.h b/kopete/plugins/motionautoaway/motionawaypreferences.h
index 43b33411..c93784d3 100644
--- a/kopete/plugins/motionautoaway/motionawaypreferences.h
+++ b/kopete/plugins/motionautoaway/motionawaypreferences.h
@@ -30,7 +30,7 @@ class MotionAwayPreferences : public KCModule
{
Q_OBJECT
public:
- MotionAwayPreferences(QWidget *parent = 0, const char *name = 0, const QStringList &args = QStringList());
+ MotionAwayPreferences(TQWidget *parent = 0, const char *name = 0, const TQStringList &args = TQStringList());
virtual void save();
virtual void load();