Polkit-Qt-1  0.95.0
polkitqt1-details.h
1 /*
2  * This file is part of the Polkit-qt project
3  * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef POLKITQT1_DETAILS_H
22 #define POLKITQT1_DETAILS_H
23 
24 #include "polkitqt1-export.h"
25 
26 #include <QtCore/QObject>
27 #include <QtCore/QSharedData>
28 
29 typedef struct _PolkitDetails PolkitDetails;
30 
38 namespace PolkitQt1
39 {
40 
47 class POLKITQT1_EXPORT Details
48 {
49 public:
53  Details();
54 
62  explicit Details(PolkitDetails *pkDetails);
63 
64  ~Details();
65 
66  Details &operator=(const Details &other);
67 
74  QString lookup(const QString &key) const;
75 
82  void insert(const QString &key, const QString &value);
83 
89  QStringList keys() const;
90 private:
91  class Data;
92  QExplicitlySharedDataPointer< Data > d;
93 };
94 
95 }
96 
97 #endif // DETAILS_H
Class used for passing details around.
Definition: polkitqt1-details.h:47
Contains Macros for exporting symbols.
Namespace wrapping Polkit-Qt classes.
Definition: listeneradapter.cpp:26