diff options
Diffstat (limited to 'core/polkit-tqt-subject.h')
-rw-r--r-- | core/polkit-tqt-subject.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/core/polkit-tqt-subject.h b/core/polkit-tqt-subject.h index 5c92b7cff..493a44527 100644 --- a/core/polkit-tqt-subject.h +++ b/core/polkit-tqt-subject.h @@ -1,5 +1,5 @@ /* - * This file is part of the PolKit1-tqt project + * This file is part of the PolKit-tqt project * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * * This library is free software; you can redistribute it and/or @@ -23,8 +23,8 @@ #include "polkit-tqt-export.h" -typedef struct _PolkitSubject PolkitSubject; -typedef struct _PolkitUnixProcess PolkitUnixProcess; +typedef struct _PolkitSubject PolkitSubject; +typedef struct _PolkitUnixProcess PolkitUnixProcess; typedef struct _PolkitSystemBusName PolkitSystemBusName; class TQString; @@ -59,10 +59,19 @@ class POLKIT_TQT_EXPORT Subject Subject(const Subject &other); ~Subject(); + /** + * Creates a Subject object from PolkitSubject + * + * \warning It shouldn't be used directly unless you are completely aware of what are you doing + * + * \param pkSubject PolkitSubject object + */ + explicit Subject(PolkitSubject *pkSubject); + Subject& operator=(const Subject &other); /** - * Check whether a message is valid + * Check whether a subject is valid * * \return true is the subject is valid */ @@ -93,9 +102,6 @@ class POLKIT_TQT_EXPORT Subject */ PolkitSubject* subject() const; - protected: - Subject(PolkitSubject *subject); - void setSubject(PolkitSubject *subject); private: |