/usr/include/rds/server/rdsdhcpvalues.h is in librdsserver-dev 1.1.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | /***************************************************************************
* Copyright (C) 2011 by Resara LLC *
* brendan@resara.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation; either version 2 of the *
* License, or (at your option) any later version. *
* *
* This program 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 *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
* *
***************************************************************************/
#ifndef RDSDHCPVALUES_H
#define RDSDHCPVALUES_H
#include <ServiceProxy>
#include <QxtPimpl>
class RdsDhcpValuesPrivate;
/**
@author Chris Vickery <chris@resara.com>
*/
class RdsDhcpValues : public QtRpc::ServiceProxy
{
friend class RdsDhcpManager;
Q_OBJECT;
QXT_DECLARE_PRIVATE(RdsDhcpValues);
QTRPC_SERVICEPROXY_PIMPL(RdsDhcpValues);
public:
RdsDhcpValues(const RdsDhcpValues &other);
~RdsDhcpValues();
RdsDhcpValues& operator=(const RdsDhcpValues &other);
virtual void setData(void* data);
protected:
RdsDhcpValues();
public slots:
/**
* Returns the config values
* @return QVariantMap with values
*/
virtual ReturnValue values() const;
/**
* Sets configuration values overwriting existing values, and merging options
* @param map the map containing the values
* @return true
*/
virtual ReturnValue setValues(const QVariantMap &map);
/**
* Gets the value associated with the key
* @param key the key to get the value of
* @return QString (it's really a QVariant). Empty if key is not found.
*/
virtual ReturnValue value(const QString &key) const;
/**
* Sets a configuration value
* @param key value key
* @param value the value
* @return true
*/
virtual ReturnValue setValue(const QString &key, const QString &value);
/**
* Returns the existence of a value (can NOT remove options)
* @param key the key of the value to remove
* @return true if the value exists, false if not
*/
virtual ReturnValue valueExists(const QString &key);
/**
* Removes a value from the configuration (can NOT remove options)
* @param key the key of the value to remove
* @return true on success, error on failure
*/
virtual ReturnValue removeValue(const QString &key);
/**
* Gets a the map of options for the configuration
* @return QVariantMap
*/
virtual ReturnValue options() const;
/**
* Sets the optoins for the configuration overwriting existing values
* @param map the map of options
* @return true
*/
virtual ReturnValue setOptions(const QVariantMap &map);
/**
* Gets an option
* @param key the key of the option to get
* @return QString (it's really a QVariant)
*/
virtual ReturnValue option(const QString &key) const;
/**
* Sets an option value
* @param key the key of the option
* @param value the value of the option
* @return true
*/
virtual ReturnValue setOption(const QString &key, const QString &value);
/**
* Returns the existence of an option
* @param key the key of the option to remove
* @return true if the option exists, false otherwise
*/
virtual ReturnValue optionExists(const QString &key);
/**
* Removes an option from the configuration
* @param key the key of the option to remove
* @return true
*/
virtual ReturnValue removeOption(const QString &key);
/**
* Gets a list of the groups
* @return QStringList of group names
*/
virtual ReturnValue groups() const;
/**
* Gets a list of names of all the subnets
* @return QStringList of subnets
*/
virtual ReturnValue subnets() const;
/**
* Gets a list of shared networks
* @return QStringList of shared networks
*/
virtual ReturnValue sharedNetworks() const;
/**
* Gets a list of hosts
* @return QStringList of hosts
*/
virtual ReturnValue hosts() const;
/**
* Gets RdsDhcpSharedNetwork object for sharedNetwork
* @param sharedNetwork the name of the shared network to get
* @return RdsDhcpSharedNetwork on success, error on failure
*/
virtual ReturnValue sharedNetwork(const QString &sharedNetwork) const;
/**
* Gets RdsDhcpHost object with hostname
* @param hostname the name of the host to get
* @return RdsDhcpHost on success, error on failure
*/
virtual ReturnValue host(const QString &hostname) const;
/**
* Gets RdsDhcpGroup object with group name an information
* @param group the name of the group to get
* @return RdsDhcpGroup on success, error on failure
*/
virtual ReturnValue group(const QString &group) const;
/**
* Gets RdsDhcpSubnet object for subnet
* @param subnet the name of the subnet to get
* @return RdsDhcpSubnet on success, error on failure
*/
virtual ReturnValue subnet(const QString &subnet) const;
/**
* Adds a shared network to the configuration
* @param sharedNetwork the name of the shared network
* @return RdsDhcpSharedNetwork object with the shared network name
*/
virtual ReturnValue addSharedNetwork(const QString &sharedNetwork);
/**
* Adds a host to the configuration
* @param hostname the name of the host to add
* @return RdsDhcpHost object with the host name
*/
virtual ReturnValue addHost(const QString &hostname);
/**
* Adds a group to the configuration
* @param group the name of the group to add
* @return RdsDhcpGroup object with the group name
*/
virtual ReturnValue addGroup(const QString &group);
/**
* Adds a subnet to the configuration
* @param subnet the name of the subnet to add
* @return RdsDhcpSubnet object with the subnet name
*/
virtual ReturnValue addSubnet(const QString &subnet);
/**
* Removes a share network from the configuration
* @param sharedNetwork the shared network to remove
* @return true
*/
virtual ReturnValue removeSharedNetwork(const QString &sharedNetwork);
/**
* Removes a host from the configuration
* @param hostname the host to remove
* @return true
*/
virtual ReturnValue removeHost(const QString &hostname);
/**
* Removes a group from the configuration
* @param group the group to remove
* @return true
*/
virtual ReturnValue removeGroup(const QString &group);
/**
* Removes a subnet from the configuration
* @param subnet the subnet to remove
* @return true
*/
virtual ReturnValue removeSubnet(const QString &subnet);
};
#endif
|