/usr/include/x86_64-linux-gnu/alljoyn/about/AboutService.h is in liballjoyn-dev-1604 16.04a-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 | /**
* @file
* An Alljoyn BusObject that implements the org.alljoyn.About interface
*/
/******************************************************************************
* 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 _ABOUTSERVICE_H
#define _ABOUTSERVICE_H
#include <vector>
#include <map>
#include <alljoyn/BusAttachment.h>
#include <alljoyn/about/PropertyStore.h>
#include <qcc/Mutex.h>
namespace ajn {
namespace services {
/**
* AboutService is an AllJoyn BusObject that implements the org.alljoyn.About standard interface.
* Applications that provide AllJoyn IoE services use an instance of this class to announce
* their capabilities and other identifying details of the services being provided.
*
* @deprecated The AboutService class has been deprecated please see the
* AboutObj class for similar functionality as the AboutService class.
*/
class AboutService : public ajn::BusObject {
public:
/**
* Construct an AboutService.
*
* @deprecated The AboutService class has been deprecated please see the
* AboutObj class.
*
* @param[in] bus BusAttachment instance associated with this AboutService
* @param[in] store Set of key/value pairs used to populate required/optional/app-defined
* members of about and announce data
*/
QCC_DEPRECATED(AboutService(ajn::BusAttachment& bus, PropertyStore& store));
/**
* destructor
*
* @deprecated The AboutService class has been deprecated please see the
* AboutObj class.
*/
QCC_DEPRECATED(virtual ~AboutService()) {
}
/**
* Register the AboutService on the AllJoyn bus passing the port to be announced.
*
* @deprecated The AboutService::Register function has been deprecated please
* see the AboutObj::Announce function.
*
* @param port used to bind the session.
* @return status.
*/
QCC_DEPRECATED(QStatus Register(int port));
/**
* Unregister the About service from the bus
*
* @deprecated The AboutService::Unregister function has been deprecated please
* see the AboutObj::Unannounce function.
*/
QCC_DEPRECATED(void Unregister());
/**
* AddObjectDescription adds objects Description to the AboutService announcement.
*
* @deprecated The AboutService::AddObjectDescription function has been
* deprecated please see the BusObject::AddInterface function,
* BusObject::SetAnnounceFlag function, and BusAttahcment::RegisterBusObject
* function
*
* @param[in] interfacePath of the interface.
* @param[in] interfaceNames
* @return ER_OK if successful.
*/
QCC_DEPRECATED(QStatus AddObjectDescription(qcc::String const & interfacePath, std::vector<qcc::String> const & interfaceNames));
/**
* RemoveObjectDescription adds objects Description to the AboutService announcement.
*
* @deprecated The AboutService::RemoveObjectDescription function has been
* deprecated please see the BusObject::AddInterface function,
* BusObject::SetAnnounceFlag function, and BusAttahcment::UnregisterBusObject
* function
*
* @param[in] interfacePath of the interface.
* @param[in] interfaceNames
* @return ER_OK if successful.
*/
QCC_DEPRECATED(QStatus RemoveObjectDescription(qcc::String const & interfacePath, std::vector<qcc::String> const & interfaceNames));
/**
* Send or replace the org.alljoyn.About.Announce sessionless signal.
*
* Validate store and object announcements and emit the announce signal.
*
* @deprecated The AboutService::Announce function has been deprecated please
* see the AboutObj::Announce function.
*
* @return
* - ER_MANDATORY_FIELD_MISSING: Logs an error with specific field that has a problem.
*/
QCC_DEPRECATED(QStatus Announce());
private:
/**
* Handles GetAboutData method
* @param[in] member
* @param[in] msg reference of AllJoyn Message
*/
void GetAboutData(const ajn::InterfaceDescription::Member* member, ajn::Message& msg);
/**
* Handles GetObjectDescription method
* @param[in] member
* @param[in] msg reference of AllJoyn Message
*/
void GetObjectDescription(const ajn::InterfaceDescription::Member* member, ajn::Message& msg);
/**
* Handles the GetPropery request
* @param[in] ifcName interface name
* @param[in] propName the name of the properly
* @param[in] val reference of MsgArg out parameter.
* @return ER_OK if successful.
*/
QStatus Get(const char* ifcName, const char* propName, MsgArg& val);
/**
* pointer to BusAttachment
*/
ajn::BusAttachment* m_BusAttachment;
/**
* pointer to PropertyStore
*/
PropertyStore* m_PropertyStore;
/**
* stores the signal member initialized in the Register(..)
*/
const ajn::InterfaceDescription::Member* m_AnnounceSignalMember;
/**
* port published by the announcement
*/
int m_AnnouncePort;
/**
* map that holds interfaces that will be announced
*/
std::map<qcc::String, std::vector<qcc::String> > m_AnnounceObjectsMap;
/**
* Mutex for protecting the m_AnnounceObjectsMap
*/
qcc::Mutex m_announceObjectsLock;
};
}
}
#endif /*_ABOUTSERVICE_H*/
|