You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.3 KiB
97 lines
2.3 KiB
3 years ago
|
/*
|
||
3 years ago
|
* This file is part of the Polkit-tqt project
|
||
3 years ago
|
* 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.
|
||
|
*/
|
||
|
|
||
3 years ago
|
#ifndef POLKIT_TQT_DETAILS_H
|
||
|
#define POLKIT_TQT_DETAILS_H
|
||
3 years ago
|
|
||
3 years ago
|
#include "polkit-tqt-export.h"
|
||
3 years ago
|
|
||
|
typedef struct _PolkitDetails PolkitDetails;
|
||
|
|
||
3 years ago
|
class TQString;
|
||
|
class TQStringList;
|
||
|
|
||
|
|
||
3 years ago
|
/**
|
||
3 years ago
|
* \namespace PolkitTQt PolkitTQt
|
||
3 years ago
|
*
|
||
3 years ago
|
* \brief Namespace wrapping Polkit-TQt classes
|
||
3 years ago
|
*
|
||
3 years ago
|
* This namespace wraps all Polkit-TQt classes.
|
||
3 years ago
|
*/
|
||
3 years ago
|
namespace PolkitTQt
|
||
3 years ago
|
{
|
||
|
|
||
|
/**
|
||
3 years ago
|
* \class Details polkit-tqt-details.h Details
|
||
3 years ago
|
* \author Radek Novacek <rnovacek@redhat.com>
|
||
|
*
|
||
|
* \brief Class used for passing details around.
|
||
|
*/
|
||
3 years ago
|
class POLKIT_TQT_EXPORT Details
|
||
3 years ago
|
{
|
||
3 years ago
|
public:
|
||
3 years ago
|
Details();
|
||
3 years ago
|
Details(const Details &other);
|
||
|
~Details();
|
||
3 years ago
|
|
||
|
/**
|
||
|
* 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);
|
||
|
|
||
3 years ago
|
Details& operator=(const Details &other);
|
||
3 years ago
|
|
||
|
/**
|
||
|
* Get the value for \p key
|
||
|
*
|
||
|
* \param key A key
|
||
3 years ago
|
* \return Value of the key \p key, otherwise empty TQString.
|
||
3 years ago
|
*/
|
||
3 years ago
|
TQString lookup(const TQString &key) const;
|
||
3 years ago
|
|
||
|
/**
|
||
|
* Inserts key \p key with value \p value.
|
||
|
*
|
||
|
* \param key A key.
|
||
|
* \param value A value.
|
||
|
*/
|
||
3 years ago
|
void insert(const TQString &key, const TQString &value);
|
||
3 years ago
|
|
||
|
/**
|
||
|
* Gets a list of all keys.
|
||
|
*
|
||
|
* \return List of all keys.
|
||
|
*/
|
||
3 years ago
|
TQStringList keys() const;
|
||
3 years ago
|
|
||
|
private:
|
||
3 years ago
|
class Data;
|
||
3 years ago
|
Data *d;
|
||
3 years ago
|
};
|
||
|
|
||
|
}
|
||
|
|
||
3 years ago
|
#endif
|