blob: 6040e7a06861b36ae9cf7e70a9cf90ed947073d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*
* This file is part of the Polkit-tqt project
* Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef POLKIT_TQT_DETAILS_H
#define POLKIT_TQT_DETAILS_H
#include "polkit-tqt-export.h"
typedef struct _PolkitDetails PolkitDetails;
class TQString;
class TQStringList;
/**
* \namespace PolkitTQt PolkitTQt
*
* \brief Namespace wrapping Polkit-TQt classes
*
* This namespace wraps all Polkit-TQt classes.
*/
namespace PolkitTQt
{
/**
* \class Details polkit-tqt-details.h Details
* \author Radek Novacek <rnovacek@redhat.com>
*
* \brief Class used for passing details around.
*/
class POLKIT_TQT_EXPORT Details
{
public:
Details();
Details(const Details &other);
~Details();
/**
* Creates Details object from PolkitDetails
*
* \warning Use this only if you are completely aware of what are you doing!
*
* \param pkDetails PolkitDetails object
*/
explicit Details(PolkitDetails *pkDetails);
Details& operator=(const Details &other);
/**
* Get the value for \p key
*
* \param key A key
* \return Value of the key \p key, otherwise empty TQString.
*/
TQString lookup(const TQString &key) const;
/**
* Inserts key \p key with value \p value.
*
* \param key A key.
* \param value A value.
*/
void insert(const TQString &key, const TQString &value);
/**
* Gets a list of all keys.
*
* \return List of all keys.
*/
TQStringList keys() const;
private:
class Data;
Data *d;
};
}
#endif
|