summaryrefslogtreecommitdiffstats
path: root/core/polkit-tqt-subject.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-11-10 10:02:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-11-10 10:02:01 +0900
commit4606c91f4c62ae540df8edca973c2c5e405227d7 (patch)
tree6496977cbd591c7b530fc49ccdf115cd9673137c /core/polkit-tqt-subject.h
parenteb2210c94488f6c57159fede9a98891e4f3a1a52 (diff)
downloadpolkit-tqt-4606c91f4c62ae540df8edca973c2c5e405227d7.tar.gz
polkit-tqt-4606c91f4c62ae540df8edca973c2c5e405227d7.zip
Completed conversion of 'core' library module.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'core/polkit-tqt-subject.h')
-rw-r--r--core/polkit-tqt-subject.h20
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: