diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/plugins/statistics/statisticscontact.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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/statistics/statisticscontact.h')
-rw-r--r-- | kopete/plugins/statistics/statisticscontact.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kopete/plugins/statistics/statisticscontact.h b/kopete/plugins/statistics/statisticscontact.h index 217000db..719a65da 100644 --- a/kopete/plugins/statistics/statisticscontact.h +++ b/kopete/plugins/statistics/statisticscontact.h @@ -52,7 +52,7 @@ public: /** \brief Access method * \return m_statisticsContactId */ - QString statisticsContactId() { return m_statisticsContactId; } + TQString statisticsContactId() { return m_statisticsContactId; } /** \brief Access method * \return m_oldStatus @@ -62,7 +62,7 @@ public: /** \brief Access method * \return m_oldStatusDateTime */ - QDateTime oldStatusDateTime() { return m_oldStatusDateTime; } + TQDateTime oldStatusDateTime() { return m_oldStatusDateTime; } /** \brief Access method * \return m_messageLength @@ -76,12 +76,12 @@ public: * \brief Access method * \return m_lastTalk */ - QDateTime lastTalk() { return m_lastTalk; } + TQDateTime lastTalk() { return m_lastTalk; } /** * \brief Access method * \return m_lastPresent */ - QDateTime lastPresent() { return m_lastPresent; } + TQDateTime lastPresent() { return m_lastPresent; } /** * \brief sets \p m_isChatWindowOpen to true */ @@ -106,17 +106,17 @@ public: /** * \returns true if contact was status at dt, false else. */ - bool wasStatus(QDateTime dt, Kopete::OnlineStatus::StatusType status); + bool wasStatus(TQDateTime dt, Kopete::OnlineStatus::StatusType status); /** * \returns the status of the contact at dt. Return false if dt is invalid. */ - QString statusAt(QDateTime dt); + TQString statusAt(TQDateTime dt); /** * \returns the main (most used) status of the contact at date (not time) dt. return false if dt is invalid. */ - QString mainStatusDate(const QDate& date); + TQString mainStatusDate(const TQDate& date); /* * Prevision methods */ @@ -126,25 +126,25 @@ public: // * \param status the status to be checked. // * \retval nextEventDateTime the next event average prevision datetime. // */ -// QDateTime nextEvent(const Kopete::OnlineStatus::StatusType& status); +// TQDateTime nextEvent(const Kopete::OnlineStatus::StatusType& status); // // /** // * \brief Convenience method for nextEvent with Offline status // */ -// QDateTime nextOfflineEvent(); +// TQDateTime nextOfflineEvent(); // // /** // * \brief Convenience method for nextEvent with Online status // */ -// QDateTime nextOnlineEvent(); +// TQDateTime nextOnlineEvent(); /** * \brief computes the main "status" events for the contact */ - QValueList<QTime> mainEvents(const Kopete::OnlineStatus::StatusType& status); + TQValueList<TQTime> mainEvents(const Kopete::OnlineStatus::StatusType& status); /// \brief used by mainEvents() - QValueList<int> computeCentroids(const QValueList<int>& centroids, const QValueList<int>& values); + TQValueList<int> computeCentroids(const TQValueList<int>& centroids, const TQValueList<int>& values); /** * \brief adds contact to "contacts" database and generates m_statisticsContactId if needed @@ -179,13 +179,13 @@ private: * \retval statvar1 * \retval statvar2 */ - void commonStatsCheck(const QString name, QString& statVar1, QString& statVar2, const QString defaultValue1 = "", const QString defaultValue2 = ""); + void commonStatsCheck(const TQString name, TQString& statVar1, TQString& statVar2, const TQString defaultValue1 = "", const TQString defaultValue2 = ""); /** * @brief Same as commonStatsCheck for integers. * Provided for convenience */ - void commonStatsCheck(const QString name, int& statVar1, int& statVar2, const int defaultValue1 = 0, const int defaultValue2 = -1); + void commonStatsCheck(const TQString name, int& statVar1, int& statVar2, const int defaultValue1 = 0, const int defaultValue2 = -1); /** * @brief Save a value in the "commonstats" table @@ -194,7 +194,7 @@ private: * \param statVar2 the second stat we can save in this table for this entry * \param statVarChanged if this param is true, we save. Else, we don't. Spare some disk usage. */ - void commonStatsSave(const QString name, const QString statVar1, const QString statVar2, const bool statVarChanged); + void commonStatsSave(const TQString name, const TQString statVar1, const TQString statVar2, const bool statVarChanged); /** * Kopete::MetaContact linked to this StatisticsContact @@ -213,7 +213,7 @@ private: */ Kopete::OnlineStatus::StatusType m_oldStatus; /// We keep the old status datetime here - QDateTime m_oldStatusDateTime; + TQDateTime m_oldStatusDateTime; /** * Average time this user takes between two of his messages @@ -223,7 +223,7 @@ private: bool m_timeBetweenTwoMessagesChanged; /// Date at which the last message was received. /// Used to compute m_timeBetweenTwoMessages - QDateTime m_lastMessageReceived; + TQDateTime m_lastMessageReceived; /// This is the ponderation corresponding to m_timeBetweenTwoMessagesOn int m_timeBetweenTwoMessagesOn; /// We don't count time if a chatwindow isn't open @@ -240,20 +240,20 @@ private: /** * Last time user talked with this contact */ - QDateTime m_lastTalk; + TQDateTime m_lastTalk; bool m_lastTalkChanged; /** * Last time user was present (=online or away) */ - QDateTime m_lastPresent; + TQDateTime m_lastPresent; bool m_lastPresentChanged; /** * Unique id that identifies StatisticsContact * It's also identifier for database records */ - QString m_statisticsContactId; + TQString m_statisticsContactId; }; |