Commit a7989893 authored by gladish's avatar gladish

Adding some more stubs.

parent 13d3fefe
#include "DeviceMethod.h"
bridge::DeviceMethod::DeviceMethod()
{
}
bridge::DeviceMethod::~DeviceMethod()
{
}
uint32_t
bridge::DeviceMethod::InvokeMethod(
ajn::Message const& msg,
ajn::MsgArg* outargs,
size_t numOutArgs)
{
return 0;
}
QStatus
bridge::DeviceMethod::Initialize(shared_ptr<DeviceMain> const& parent, shared_ptr<IAdapterMethod> const& adapterMethod)
{
return ER_NOT_IMPLEMENTED;
}
QStatus
bridge::DeviceMethod::SetName(std::string const& name)
{
return ER_NOT_IMPLEMENTED;
}
QStatus
bridge::DeviceMethod::BuildSignature(
AdapterValueVector const& valueList,
std::string& signature,
std::string& parameterNames)
{
return ER_NOT_IMPLEMENTED;
}
#ifndef __DEVICE_METHOD_H__
#define __DEVICE_METHOD_H__
#include "IAdapter.h"
#include <alljoyn/Message.h>
#include <alljoyn/MsgArg.h>
#include <alljoyn/Status.h>
namespace bridge
{
class DeviceMain;
class DeviceMethod
{
public:
DeviceMethod();
virtual ~DeviceMethod();
QStatus Initialize(shared_ptr<DeviceMain> const& parent, shared_ptr<IAdapterMethod> const& adapterMethod);
uint32_t InvokeMethod(ajn::Message const& msg, ajn::MsgArg* outArgs, size_t numOutArgs);
inline std::string const& GetName() const
{ return m_exposedName; }
private:
QStatus SetName(std::string const& name);
QStatus BuildSignature(AdapterValueVector const& valueList, std::string& sig, std::string& parameterNames);
private:
std::string m_exposedName;
std::string m_inSignature;
std::string m_outSignature;
std::string m_parameterNames;
shared_ptr<DeviceMain> m_parent;
};
}
#endif
#include "DeviceProperty.h"
bridge::DeviceProperty::DeviceProperty()
{
}
#ifndef __DEVICE_PROPERTY_H__
#define __DEVICE_PROPERTY_H__
namespace bridge
{
class DeviceProperty
{
public:
DeviceProperty();
};
}
#endif
#include "DeviceSignal.h"
bridge::DeviceSignal::DeviceSignal()
{
}
bridge::DeviceSignal::~DeviceSignal()
{
}
#ifndef __DEVICE_SIGNAL_H__
#define __DEVICE_SIGNAL_H__
namespace bridge
{
class DeviceSignal
{
public:
DeviceSignal();
virtual ~DeviceSignal();
};
}
#endif
......@@ -7,6 +7,9 @@ SRCS=DeviceProviders/AllJoynProvider.cpp \
Bridge/BridgeDevice.cpp \
Bridge/ConfigManager.cpp \
Bridge/DeviceMain.cpp \
Bridge/DeviceMethod.cpp \
Bridge/DeviceProperty.cpp \
Bridge/DeviceSignal.cpp \
Common/Log.cpp \
Common/Variant.cpp \
Adapters/MockAdapter/MockAdapter.cpp \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment