Commit 68cbc6e3 authored by gladish's avatar gladish
Browse files

Added stubs for AllJoynHelper #7

parent acbe35f5
#include "AllJoynHelper.h"
QStatus
Bridge::AllJoynHelper::SetMsgArg(IAdapterValue const& adapterValue, ajn::MsgArg& msgArg)
{
return ER_NOT_IMPLEMENTED;
}
QStatus
Bridge::AllJoynHelper::SetMsgArgFromAdapterObject(IAdapterValue const& adapterValue, ajn::MsgArg& msg, DeviceMain* deviceMain)
{
return ER_NOT_IMPLEMENTED;
}
QStatus
Bridge::AllJoynHelper::GetAdapterValue(IAdapterValue& adapterValue, ajn::MsgArg const& msg)
{
return ER_NOT_IMPLEMENTED;
}
QStatus
Bridge::AllJoynHelper::GetAdapterObject(IAdapterValue& adapterValue, ajn::MsgArg const& msg, DeviceMain *deviceMain)
{
return ER_NOT_IMPLEMENTED;
}
// TODO:
// static QStatus GetSignature(_In_ Windows::Foundation::PropertyType propertyType, _Out_ std::string &signature);
void
Bridge::AllJoynHelper::EncodeBusObjectName(std::string const& s, std::string &builtName)
{
}
void
Bridge::AllJoynHelper::EncodePropertyOrMethodOrSignalName(std::string const& s, std::string &builtName)
{
}
void
Bridge::AllJoynHelper::EncodeStringForInterfaceName(std::string const& s, std::string& encoded)
{
}
void
Bridge::AllJoynHelper::EncodeStringForServiceName(std::string const& s, std::string &encoded)
{
}
void
Bridge::AllJoynHelper::EncodeStringForRootServiceName(std::string const& s, std::string &encoded)
{
}
void
Bridge::AllJoynHelper::EncodeStringForAppName(std::string const& s, std::string &encodeString)
{
}
std::string TimeChar(std::string const& s, char c)
{
return std::string();
}
......@@ -2,6 +2,7 @@
#include "IAdapter.h"
#include <string>
#include <vector>
#include <alljoyn/MsgArg.h>
......@@ -13,16 +14,30 @@ namespace Bridge
{
public:
static QStatus SetMsgArg(IAdapterValue const& adapterValue, ajn::MsgArg& msgArg);
template<class T>
static QStatus SetMsgArg(ajn::MsgArg& msgArg, std::string const& signature, std::vector<T> const& arr);
template<class T>
static QStatus GetArrayFromMsgArg(ajn::MsgArg& msgArg, std::string const& signature, std::vector<T>& arr);
static QStatus SetMsgArgFromAdapterObject(IAdapterValue const& adapterValue, ajn::MsgArg& msg, DeviceMain* deviceMain);
static QStatus GetAdapterValue(IAdapterValue& adapterValue, ajn::MsgArg const& msg);
static QStatus GetAdapterObject(IAdapterValue& adapterValue, ajn::MsgArg const& msg _In_ DeviceMain *deviceMain);
// static QStatus GetSignature(_In_ Windows::Foundation::PropertyType propertyType, _Out_ std::string &signature);
static void BuildBusObjectName(std::string const& s, std::string &builtName);
static void BuildPropertyOrMethodOrSignalName(std::string const& s, std::string &builtName);
static void EncodeStringForServiceName(std::string const& s, std::string &encodeString);
static void EncodeStringForRootServiceName(std::string const& s, std::string &encodeString);
static QStatus GetAdapterObject(IAdapterValue& adapterValue, ajn::MsgArg const& msg, DeviceMain* deviceMain);
// TODO:
// static QStatus GetSignature(_In_ Windows::Foundation::PropertyType propertyType, _Out_ std::string &signature);
static void EncodeBusObjectName(std::string const& s, std::string &builtName);
static void EncodePropertyOrMethodOrSignalName(std::string const& s, std::string &builtName);
static void EncodeStringForInterfaceName(std::string const& s, std::string& encoded);
static void EncodeStringForServiceName(std::string const& s, std::string &encoded);
static void EncodeStringForRootServiceName(std::string const& s, std::string &encoded);
static void EncodeStringForAppName(std::string const& s, std::string &encodeString);
static std::string TimeChar(std::string const& s, char c);
};
}
SRCS=DeviceProviders/AllJoynProvider.cpp \
DeviceProviders/AllJoynService.cpp \
Bridge/AllJoynAbout.cpp \
Bridge/AllJoynHelper.cpp \
Bridge/Bridge.cpp \
Bridge/BridgeConfig.cpp \
Bridge/BridgeDevice.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