diff options
Diffstat (limited to 'core/polkitqt1-temporaryauthorization.cpp')
-rw-r--r-- | core/polkitqt1-temporaryauthorization.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/core/polkitqt1-temporaryauthorization.cpp b/core/polkitqt1-temporaryauthorization.cpp index 5242faf7a..7614089d4 100644 --- a/core/polkitqt1-temporaryauthorization.cpp +++ b/core/polkitqt1-temporaryauthorization.cpp @@ -23,15 +23,15 @@ #include <polkit/polkit.h> -namespace PolkitQt1 +namespace PolkitTQt1 { -class TemporaryAuthorization::Data : public QSharedData +class TemporaryAuthorization::Data : public TQSharedData { public: Data() {} Data(const Data& other) - : QSharedData(other) + : TQSharedData(other) , id(other.id) , actionId(other.actionId) , subject(other.subject) @@ -41,26 +41,26 @@ public: } ~Data() {} - QString id; - QString actionId; + TQString id; + TQString actionId; Subject subject; - QDateTime timeObtained; - QDateTime timeExpires; + TQDateTime timeObtained; + TQDateTime timeExpires; }; TemporaryAuthorization::TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization) : d(new Data) { g_type_init(); - d->id = QString::fromUtf8(polkit_temporary_authorization_get_id(pkTemporaryAuthorization)); - d->actionId = QString::fromUtf8(polkit_temporary_authorization_get_action_id(pkTemporaryAuthorization)); + d->id = TQString::fromUtf8(polkit_temporary_authorization_get_id(pkTemporaryAuthorization)); + d->actionId = TQString::fromUtf8(polkit_temporary_authorization_get_action_id(pkTemporaryAuthorization)); d->subject = Subject::fromString(polkit_subject_to_string(polkit_temporary_authorization_get_subject(pkTemporaryAuthorization))); - d->timeObtained = QDateTime::fromTime_t(polkit_temporary_authorization_get_time_obtained(pkTemporaryAuthorization)); - d->timeExpires = QDateTime::fromTime_t(polkit_temporary_authorization_get_time_expires(pkTemporaryAuthorization)); + d->timeObtained = TQDateTime::fromTime_t(polkit_temporary_authorization_get_time_obtained(pkTemporaryAuthorization)); + d->timeExpires = TQDateTime::fromTime_t(polkit_temporary_authorization_get_time_expires(pkTemporaryAuthorization)); g_object_unref(pkTemporaryAuthorization); } -TemporaryAuthorization::TemporaryAuthorization(const PolkitQt1::TemporaryAuthorization& other) +TemporaryAuthorization::TemporaryAuthorization(const PolkitTQt1::TemporaryAuthorization& other) : d(other.d) { @@ -72,7 +72,7 @@ TemporaryAuthorization::TemporaryAuthorization() } -TemporaryAuthorization& TemporaryAuthorization::operator=(const PolkitQt1::TemporaryAuthorization& other) +TemporaryAuthorization& TemporaryAuthorization::operator=(const PolkitTQt1::TemporaryAuthorization& other) { d = other.d; return *this; @@ -82,28 +82,28 @@ TemporaryAuthorization::~TemporaryAuthorization() { } -QString TemporaryAuthorization::id() const +TQString TemporaryAuthorization::id() const { return d->id; } -QString TemporaryAuthorization::actionId() const +TQString TemporaryAuthorization::actionId() const { return d->actionId; } Subject TemporaryAuthorization::subject() const { - //qFatal(polkit_subject_to_string(polkit_temporary_authorization_get_subject(d->temporaryAuthorization))); + //tqFatal(polkit_subject_to_string(polkit_temporary_authorization_get_subject(d->temporaryAuthorization))); return d->subject;//Subject::fromString(polkit_subject_to_string(d->subject)); } -QDateTime TemporaryAuthorization::obtainedAt() const +TQDateTime TemporaryAuthorization::obtainedAt() const { return d->timeObtained; } -QDateTime TemporaryAuthorization::expirationTime() const +TQDateTime TemporaryAuthorization::expirationTime() const { return d->timeExpires; } |