Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file not shown.
Binary file removed AllJoyn/AllJoynExplorer/AllJoynExplorer_1.0.0.0.zip
Binary file not shown.
Binary file removed AllJoyn/AllJoynExplorer/AllJoynExplorer_1.0.0.1.zip
Binary file not shown.
Binary file removed AllJoyn/AllJoynExplorer/AllJoynExplorer_1.0.0.2.zip
Binary file not shown.
Binary file removed AllJoyn/AllJoynExplorer/AllJoynExplorer_1.0.1.11.zip
Binary file not shown.
Binary file not shown.
Binary file removed AllJoyn/AllJoynExplorer/AllJoynExplorer_1.0.1.9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed AllJoyn/AllJoynZWaveDemo/ZWaveAdapter.zip
Binary file not shown.
Binary file removed AllJoyn/AllJoynZigBeeAdapter/ZigBeeAdapter.zip
Binary file not shown.
Binary file removed AllJoyn/AlljoynMockAdapter/MockAdapter.zip
Binary file not shown.
81 changes: 81 additions & 0 deletions AllJoyn/Platform/BridgeRT/AdapterConstants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#pragma once

using namespace Platform;

namespace BridgeRT
{

//
// Constants class
// Description:
// Adapter level signals and parameters names
//
public ref class Constants sealed
{
public:

// Device Arrival Signal
static property Platform::String^ DEVICE_ARRIVAL_SIGNAL
{
inline Platform::String^ get() { return device_arrival_signal; }
}

static property Platform::String^ DEVICE_ARRIVAL__DEVICE_HANDLE
{
inline Platform::String^ get() { return device_arrival__device_handle; }
}


// Device Removal Signal
static property Platform::String^ DEVICE_REMOVAL_SIGNAL
{
inline Platform::String^ get() { return device_removal_signal; }
}

static property Platform::String^ DEVICE_REMOVAL__DEVICE_HANDLE
{
inline Platform::String^ get() { return device_removal__device_handle; }
}


// Change of Value Signal
static property Platform::String^ CHANGE_OF_VALUE_SIGNAL
{
inline Platform::String^ get() { return change_of_value_signal; }
}

static property Platform::String^ COV__PROPERTY_HANDLE
{
inline Platform::String^ get() { return cov__property_handle; }
}

static property Platform::String^ COV__ATTRIBUTE_HANDLE
{
inline Platform::String^ get() { return cov__attribute_handle; }
}


// Lamp State Changed Signal
static property Platform::String^ LAMP_STATE_CHANGED_SIGNAL_NAME
{
inline Platform::String^ get() { return lamp_state_changed_signal_name; }
}

static property Platform::String^ SIGNAL_PARAMETER__LAMP_ID__NAME
{
inline Platform::String^ get() { return lamp_id__parameter_name; }
}

private:
static Platform::String^ device_arrival_signal;
static Platform::String^ device_arrival__device_handle;
static Platform::String^ device_removal_signal;
static Platform::String^ device_removal__device_handle;
static Platform::String^ change_of_value_signal;
static Platform::String^ cov__property_handle;
static Platform::String^ cov__attribute_handle;
static Platform::String^ lamp_state_changed_signal_name;
static Platform::String^ lamp_id__parameter_name;
};

}
55 changes: 55 additions & 0 deletions AllJoyn/Platform/BridgeRT/AdapterDefinitions.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//
// Copyright (c) 2015, Microsoft Corporation
//
// 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.
//

#pragma once

#include <collection.h>
#include <algorithm>

namespace BridgeRT
{
//
// Adapter objects vector/vector interfaces
//

interface class IAdapterValue;
typedef Platform::Collections::Vector<IAdapterValue^> AdapterValueVector;
typedef Windows::Foundation::Collections::IVector<IAdapterValue^> IAdapterValueVector;
typedef Windows::Foundation::PropertyType AdapterValueType;

interface class IAdapterAttribute;
typedef Platform::Collections::Vector<IAdapterAttribute^> AdapterAttributeVector;
typedef Windows::Foundation::Collections::IVector<IAdapterAttribute^> IAdapterAttributeVector;

interface class IAdapterProperty;
typedef Platform::Collections::Vector<IAdapterProperty^> AdapterPropertyVector;
typedef Windows::Foundation::Collections::IVector<IAdapterProperty^> IAdapterPropertyVector;

interface class IAdapterMethod;
typedef Platform::Collections::Vector<IAdapterMethod^> AdapterMethodVector;
typedef Windows::Foundation::Collections::IVector<IAdapterMethod^> IAdapterMethodVector;

interface class IAdapterSignal;
typedef Platform::Collections::Vector<IAdapterSignal^> AdapterSignalVector;
typedef Windows::Foundation::Collections::IVector<IAdapterSignal^> IAdapterSignalVector;

interface class IAdapterDevice;
typedef Platform::Collections::Vector<IAdapterDevice^> AdapterDeviceVector;
typedef Windows::Foundation::Collections::IVector<IAdapterDevice^> IAdapterDeviceVector;

typedef Platform::Collections::Map<Platform::String^, Platform::String^> AnnotationMap;
typedef Windows::Foundation::Collections::IMap<Platform::String^, Platform::String^> IAnnotationMap;
}
Loading