/usr/include/x86_64-linux-gnu/alljoyn/controlpanel/HttpControl.h is in liballjoynservices-dev-1604 16.04-3.
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 | /******************************************************************************
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************************/
#ifndef HTTPCONTROL_H_
#define HTTPCONTROL_H_
#include <alljoyn/BusObject.h>
#include <alljoyn/controlpanel/ControlPanelEnums.h>
namespace ajn {
namespace services {
class ControlPanelDevice;
class HttpControlBusObject;
/**
* HttpControl class. Allows definition of a url
*/
class HttpControl {
public:
/**
* Constructor for HttpControl
* @param url - url of HttpControl
*/
HttpControl(qcc::String const& url);
/**
* Constructor for HttpControl
* @param objectPath - objectPath of HttpControl
* @param device - the device containing this HttpControl
*/
HttpControl(qcc::String const& objectPath, ControlPanelDevice* device);
/**
* Destructor of HttpControl
*/
virtual ~HttpControl();
/**
* Get the Interface Version of the HttpControl
* @return interface Version
*/
const uint16_t getInterfaceVersion() const;
/**
* Register the HttpControl BusObject
* @param bus - bus used for registering the object
* @param unitName - name of unit
* @return status - success/failure
*/
QStatus registerObjects(BusAttachment* bus, qcc::String const& unitName);
/**
* Register the HttpControl BusObject
* @param bus - bus used for registering the object
* @return status - success/failure
*/
QStatus registerObjects(BusAttachment* bus);
/**
* Refresh the HttpControl
* @param bus - bus used for refreshing the object
* @return status - success/failure
*/
QStatus refreshObjects(BusAttachment* bus);
/**
* Unregister the HttpControl BusObject
* @param bus - bus used to unregister the object
* @return status - success/failure
*/
QStatus unregisterObjects(BusAttachment* bus);
/**
* Fill MsgArg passed in with Url
* @param val - msgArg to fill
* @return status - success/failure
*/
QStatus fillUrlArg(MsgArg& val);
/**
* Read MsgArg passed in and use it to set the url
* @param val - MsgArg passed in
* @return status - success/failure
*/
QStatus readUrlArg(MsgArg const& val);
/**
* Read MsgArg passed in and use it to set the url
* @param val - MsgArg passed in
* @return status - success/failure
*/
QStatus readVersionArg(MsgArg const& val);
/**
* Get the Device that contains this HttpControl
* @return ControlPanelDevice
*/
ControlPanelDevice* getDevice() const;
/**
* Get the Url for the HttpControl
* @return url
*/
const qcc::String& getUrl() const;
/**
* Get the ControlPanelMode of this HttpControl
* @return ControlPanelMode
*/
ControlPanelMode getControlPanelMode() const;
private:
/**
* Url of HttpControl
*/
qcc::String m_Url;
/**
* ObjectPath of HttpControl
*/
qcc::String m_ObjectPath;
/**
* BusObject of HttpControl
*/
HttpControlBusObject* m_HttpControlBusObject;
/**
* The Device containing the HttpControl
*/
ControlPanelDevice* m_Device;
/**
* The mode of the HttpControl
*/
ControlPanelMode m_ControlPanelMode;
/**
* Version of the Widget
*/
uint16_t m_Version;
/**
* Copy constructor of HttpControl - private. HttpControl is not copy-able
* @param httpControl - HttpControl to copy
*/
HttpControl(const HttpControl& httpControl);
/**
* Assignment operator of HttpControl - private. HttpControl is not assignable
* @param httpControl
* @return
*/
HttpControl& operator=(const HttpControl& httpControl);
};
} //namespace services
} //namespace ajn
#endif /* HTTPCONTROL_H_ */
|