Commit f55fc8bc authored by Nicolas Metts's avatar Nicolas Metts

Initial commit

parents
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="LCclient" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/LCclient" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/LCclient" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-DQCC_OS_GROUP_POSIX" />
<Add directory="inc" />
<Add directory="../common/inc" />
<Add directory="../../build/linux/x86/debug/dist/cpp/inc" />
<Add directory="../../common/inc" />
<Add directory="../../../alljoyn/common/inc" />
<Add directory="../../build/linux/x86/debug/dist/cpp/inc/alljoyn" />
<Add directory="../../build/linux/x86/debug/dist/about/inc" />
<Add directory="../../allseen/inc" />
</Compiler>
<Linker>
<Add option="-m32" />
<Add option="-lalljoyn_notification" />
<Add option="-lalljoyn_controlpanel" />
<Add option="-lalljoyn_about" />
<Add option="-lalljoyn_services_common" />
<Add option="-lalljoyn" />
<Add option="-lrt" />
<Add option="-lstdc++" />
<Add option="-lpthread" />
<Add option="-lcrypto" />
<Add option="-lssl" />
<Add option="-lm" />
<Add directory="/home/vbelenski/Test/bin" />
</Linker>
<Unit filename="../../allseen/src/ControllerNotificationReceiver.cc" />
<Unit filename="../../allseen/inc/ControllerNotificationReceiver.h" />
<Unit filename="../../allseen/inc/ControlPanelController.h" />
<Unit filename="../../allseen/src/AboutObjApi.cc" />
<Unit filename="../../allseen/inc/AboutObjApi.h" />
<Unit filename="../../allseen/src/CommonBusListener.cc" />
<Unit filename="../../allseen/inc/CommonBusListener.h" />
<Unit filename="../../allseen/src/CommonSampleUtil.cc" />
<Unit filename="../../allseen/inc/CommonSampleUtil.h" />
<Unit filename="../../allseen/src/SrpKeyXListener.cc" />
<Unit filename="../../allseen/inc/SrpKeyXListener.h" />
<Unit filename="../common/inc/Alarm.h" />
<Unit filename="../common/inc/LSFKeyListener.h" />
<Unit filename="../common/inc/LSFResponseCodes.h" />
<Unit filename="../common/inc/LSFSemaphore.h" />
<Unit filename="../common/inc/LSFTypes.h" />
<Unit filename="../common/inc/Mutex.h" />
<Unit filename="../common/inc/Rank.h" />
<Unit filename="../common/inc/Thread.h" />
<Unit filename="../common/src/Alarm.cc" />
<Unit filename="../common/src/LSFKeyListener.cc" />
<Unit filename="../common/src/LSFResponseCodes.cc" />
<Unit filename="../common/src/LSFSemaphore.cc" />
<Unit filename="../common/src/LSFTypes.cc" />
<Unit filename="../common/src/Mutex.cc" />
<Unit filename="../common/src/Rank.cc" />
<Unit filename="../common/src/Thread.cc" />
<Unit filename="inc/AnnounceHandlerCL.h" />
<Unit filename="inc/CLControlPanel.h" />
<Unit filename="inc/CLProxyManager.h" />
<Unit filename="inc/ControlPanelListenerCL.h" />
<Unit filename="inc/ControllerClient.h" />
<Unit filename="inc/ControllerClientCallbackHandler.h" />
<Unit filename="inc/ControllerClientDefs.h" />
<Unit filename="inc/ControllerServiceManager.h" />
<Unit filename="inc/ControllerServiceManagerCallbackHandler.h" />
<Unit filename="inc/ControllerUtilCL.h" />
<Unit filename="inc/LampGroupManager.h" />
<Unit filename="inc/LampGroupManagerCallbackHandler.h" />
<Unit filename="inc/LampManager.h" />
<Unit filename="inc/LampManagerCallbackHandler.h" />
<Unit filename="inc/Manager.h" />
<Unit filename="inc/MasterSceneManager.h" />
<Unit filename="inc/MasterSceneManagerCallbackHandler.h" />
<Unit filename="inc/PresetManager.h" />
<Unit filename="inc/PresetManagerCallbackHandler.h" />
<Unit filename="inc/SceneManager.h" />
<Unit filename="inc/SceneManagerCallbackHandler.h" />
<Unit filename="inc/client_defs.h" />
<Unit filename="inc/inifile.h" />
<Unit filename="inc/tstdlibs.h" />
<Unit filename="samples/LightingControllerClientSample.cc" />
<Unit filename="src/AnnounceHandlerCL.cc" />
<Unit filename="src/CLControlPanel.cc" />
<Unit filename="src/CLProxyManager.cc" />
<Unit filename="src/ControlPanelListenerCL.cc" />
<Unit filename="src/ControllerClient.cc" />
<Unit filename="src/ControllerClientDefs.cc" />
<Unit filename="src/ControllerServiceManager.cc" />
<Unit filename="src/ControllerUtilCL.cc" />
<Unit filename="src/LampGroupManager.cc" />
<Unit filename="src/LampManager.cc" />
<Unit filename="src/Manager.cc" />
<Unit filename="src/MasterSceneManager.cc" />
<Unit filename="src/PresetManager.cc" />
<Unit filename="src/SceneManager.cc" />
<Unit filename="src/inifile.cc" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="inc/CLProxyManager.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="2815" topLine="88" />
</Cursor>
</File>
<File name="inc/ControlPanelListenerCL.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1709" topLine="9" />
</Cursor>
</File>
<File name="src/ControllerClient.cc" open="1" top="1" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="2355" topLine="45" />
</Cursor>
</File>
<File name="inc/LampManager.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1094" topLine="0" />
</Cursor>
</File>
<File name="src/ControlPanelListenerCL.cc" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1913" topLine="31" />
</Cursor>
</File>
<File name="inc/ControllerUtilCL.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1196" topLine="0" />
</Cursor>
</File>
<File name="../../allseen/src/CommonSampleUtil.cc" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="4772" topLine="117" />
</Cursor>
</File>
<File name="../../allseen/inc/ControllerNotificationReceiver.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1134" topLine="0" />
</Cursor>
</File>
<File name="src/LampManager.cc" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="975" topLine="9" />
</Cursor>
</File>
<File name="inc/CLControlPanel.h" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1131" topLine="0" />
</Cursor>
</File>
<File name="src/ControllerUtilCL.cc" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1124" topLine="0" />
</Cursor>
</File>
<File name="samples/LightingControllerClientSample.cc" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="48997" topLine="201" />
</Cursor>
<Folding>
<Collapse line="196" />
</Folding>
</File>
<File name="inc/AnnounceHandlerCL.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1814" topLine="1" />
</Cursor>
</File>
<File name="inc/LampManagerCallbackHandler.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="5491" topLine="102" />
</Cursor>
</File>
<File name="../common/inc/LSFTypes.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="34584" topLine="390" />
</Cursor>
<Folding>
<Collapse line="298" />
<Collapse line="405" />
<Collapse line="472" />
<Collapse line="626" />
<Collapse line="722" />
<Collapse line="740" />
<Collapse line="824" />
<Collapse line="945" />
<Collapse line="1041" />
<Collapse line="1122" />
<Collapse line="1242" />
<Collapse line="1329" />
<Collapse line="1401" />
<Collapse line="1419" />
<Collapse line="1436" />
<Collapse line="1454" />
<Collapse line="1537" />
</Folding>
</File>
<File name="src/CLControlPanel.cc" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1355" topLine="0" />
</Cursor>
</File>
<File name="inc/ControllerClientCallbackHandler.h" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="359" topLine="0" />
</Cursor>
</File>
<File name="src/CLProxyManager.cc" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="952" topLine="45" />
</Cursor>
</File>
</CodeBlocks_layout_file>
#------------------------------------------------------------------------------#
# This makefile was generated by 'cbp2make' tool rev.147 #
#------------------------------------------------------------------------------#
SHELL=/bin/sh
WORKDIR = `pwd`
CC = gcc
CXX = g++
AR = ar
LD = g++
WINDRES = windres
INC = -Iinc -Iinc/lsf/common/ -Iinc/alljoyn/sample_apps -Iinc/alljoyn/controlpanel/samples
CFLAGS = -Wall -DQCC_OS_GROUP_POSIX -O2
RESINC =
LIBDIR = -L/home/vbelenski/Test/bin
LIB =
LDFLAGS = -m32 -lalljoyn_notification -lalljoyn_controlpanel -lalljoyn_about -lalljoyn_services_common -lalljoyn -lrt -lstdc++ -lpthread -lcrypto -lssl -lm
OUT = LCclient
OBJS = src/ControllerServiceManager.o \
src/inifile.o \
src/SceneManager.o \
src/PresetManager.o \
src/MasterSceneManager.o \
src/Manager.o \
src/LampManager.o \
src/LampGroupManager.o \
src/ControllerUtilCL.o \
src/ControllerClientDefs.o \
src/ControllerClient.o \
src/ControlPanelListenerCL.o \
src/CLProxyManager.o \
src/CLControlPanel.o \
src/AnnounceHandlerCL.o \
samples/LightingControllerClientSample.o \
src/SrpKeyXListener.o \
src/CommonSampleUtil.o \
src/CommonBusListener.o \
src/AboutObjApi.o \
src/ControllerNotificationReceiver.o \
src/Alarm.o \
src/LSFKeyListener.o \
src/LSFResponseCodes.o \
src/LSFSemaphore.o \
src/LSFTypes.o \
src/Mutex.o \
src/Rank.o \
src/Thread.o
all: cl_controller_client
clean:
rm -f $(OBJS)
cl_controller_client: $(OBJS)
$(LD) $(LIBDIR) -o $(OUT) $(OBJS) $(LDFLAGS) $(LIB)
src/ControllerServiceManager.o: src/ControllerServiceManager.cc
$(CC) $(CFLAGS) $(INC) -c src/ControllerServiceManager.cc -o src/ControllerServiceManager.o
src/inifile.o: src/inifile.cc
$(CC) $(CFLAGS) $(INC) -c src/inifile.cc -o src/inifile.o
src/SceneManager.o: src/SceneManager.cc
$(CC) $(CFLAGS) $(INC) -c src/SceneManager.cc -o src/SceneManager.o
src/PresetManager.o: src/PresetManager.cc
$(CC) $(CFLAGS) $(INC) -c src/PresetManager.cc -o src/PresetManager.o
src/MasterSceneManager.o: src/MasterSceneManager.cc
$(CC) $(CFLAGS) $(INC) -c src/MasterSceneManager.cc -o src/MasterSceneManager.o
src/Manager.o: src/Manager.cc
$(CC) $(CFLAGS) $(INC) -c src/Manager.cc -o src/Manager.o
src/LampManager.o: src/LampManager.cc
$(CC) $(CFLAGS) $(INC) -c src/LampManager.cc -o src/LampManager.o
src/LampGroupManager.o: src/LampGroupManager.cc
$(CC) $(CFLAGS) $(INC) -c src/LampGroupManager.cc -o src/LampGroupManager.o
src/ControllerUtilCL.o: src/ControllerUtilCL.cc
$(CC) $(CFLAGS) $(INC) -c src/ControllerUtilCL.cc -o src/ControllerUtilCL.o
src/ControllerClientDefs.o: src/ControllerClientDefs.cc
$(CC) $(CFLAGS) $(INC) -c src/ControllerClientDefs.cc -o src/ControllerClientDefs.o
src/ControllerClient.o: src/ControllerClient.cc
$(CC) $(CFLAGS) $(INC) -c src/ControllerClient.cc -o src/ControllerClient.o
src/ControlPanelListenerCL.o: src/ControlPanelListenerCL.cc
$(CC) $(CFLAGS) $(INC) -c src/ControlPanelListenerCL.cc -o src/ControlPanelListenerCL.o
src/CLProxyManager.o: src/CLProxyManager.cc
$(CC) $(CFLAGS) $(INC) -c src/CLProxyManager.cc -o src/CLProxyManager.o
src/CLControlPanel.o: src/CLControlPanel.cc
$(CC) $(CFLAGS) $(INC) -c src/CLControlPanel.cc -o src/CLControlPanel.o
src/AnnounceHandlerCL.o: src/AnnounceHandlerCL.cc
$(CC) $(CFLAGS) $(INC) -c src/AnnounceHandlerCL.cc -o src/AnnounceHandlerCL.o
samples/LightingControllerClientSample.o: samples/LightingControllerClientSample.cc
$(CC) $(CFLAGS) $(INC) -c samples/LightingControllerClientSample.cc -o samples/LightingControllerClientSample.o
src/SrpKeyXListener.o: src/SrpKeyXListener.cc
$(CC) $(CFLAGS) $(INC) -c src/SrpKeyXListener.cc -o src/SrpKeyXListener.o
src/CommonSampleUtil.o: src/CommonSampleUtil.cc
$(CC) $(CFLAGS) $(INC) -c src/CommonSampleUtil.cc -o src/CommonSampleUtil.o
src/CommonBusListener.o: src/CommonBusListener.cc
$(CC) $(CFLAGS) $(INC) -c src/CommonBusListener.cc -o src/CommonBusListener.o
src/AboutObjApi.o: src/AboutObjApi.cc
$(CC) $(CFLAGS) $(INC) -c src/AboutObjApi.cc -o src/AboutObjApi.o
src/ControllerNotificationReceiver.o: src/ControllerNotificationReceiver.cc
$(CC) $(CFLAGS) $(INC) -c src/ControllerNotificationReceiver.cc -o src/ControllerNotificationReceiver.o
src/Alarm.o: src/Alarm.cc
$(CC) $(CFLAGS) $(INC) -c src/Alarm.cc -o src/Alarm.o
src/LSFKeyListener.o: src/LSFKeyListener.cc
$(CC) $(CFLAGS) $(INC) -c src/LSFKeyListener.cc -o src/LSFKeyListener.o
src/LSFResponseCodes.o: src/LSFResponseCodes.cc
$(CC) $(CFLAGS) $(INC) -c src/LSFResponseCodes.cc -o src/LSFResponseCodes.o
src/LSFSemaphore.o: src/LSFSemaphore.cc
$(CC) $(CFLAGS) $(INC) -c src/LSFSemaphore.cc -o src/LSFSemaphore.o
src/LSFTypes.o: src/LSFTypes.cc
$(CC) $(CFLAGS) $(INC) -c src/LSFTypes.cc -o src/LSFTypes.o
src/Mutex.o: src/Mutex.cc
$(CC) $(CFLAGS) $(INC) -c src/Mutex.cc -o src/Mutex.o
src/Rank.o: src/Rank.cc
$(CC) $(CFLAGS) $(INC) -c src/Rank.cc -o src/Rank.o
src/Thread.o: src/Thread.cc
$(CC) $(CFLAGS) $(INC) -c src/Thread.cc -o src/Thread.o
# cl_controller_client
## Dependencies
Building requires Alljoyn 14.12 libraries in the LD_LIBRARY_PATH and execute “make”
## Running the app
Running requires the cl_lighting_client.config file be in the users home directory and
updated for the appropriate IP addresses.
[CL]
send_state=1
send_detail=1
show_menu=1
local_port=27001
local_ip=127.0.0.1
remote_ip=127.0.0.1
remote_port=27000
export AS_WS=/media/sf_Code_CLB/allseenalliance
export JS_FW=/media/sf_Code_CLB/aj_14_12_CL/core/aj_lighting_service_framework
mkdir -p $JS_FW/allseen/inc
mkdir -p $JS_FW/allseen/inc/alljoyn/notification
mkdir -p $JS_FW/allseen/inc/alljoyn/about
mkdir -p $JS_FW/allseen/inc/alljoyn/controlpanel
mkdir -p $JS_FW/allseen/inc/alljoyn/services_common
mkdir -p $JS_FW/allseen/src
cp $AS_WS/services/base/controlpanel/cpp/samples/ControlPanelController/ControllerNotificationReceiver.cc $JS_FW/allseen/src
cp $AS_WS/services/base/controlpanel/cpp/samples/ControlPanelController/ControllerNotificationReceiver.h $JS_FW/allseen/inc
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelController.h $JS_FW/allseen/inc
cp $AS_WS/services/base/sample_apps/cpp/samples_common/AboutObjApi.cc $JS_FW/allseen/src
cp $AS_WS/services/base/sample_apps/cpp/samples_common/AboutObjApi.h $JS_FW/allseen/inc
cp $AS_WS/services/base/sample_apps/cpp/samples_common/CommonBusListener.cc $JS_FW/allseen/src
cp $AS_WS/services/base/sample_apps/cpp/samples_common/CommonBusListener.h $JS_FW/allseen/inc
cp $AS_WS/services/base/sample_apps/cpp/samples_common/CommonSampleUtil.cc $JS_FW/allseen/src
cp $AS_WS/services/base/sample_apps/cpp/samples_common/CommonSampleUtil.h $JS_FW/allseen/inc
cp $AS_WS/services/base/sample_apps/cpp/samples_common/SrpKeyXListener.cc $JS_FW/allseen/src
cp $AS_WS/services/base/sample_apps/cpp/samples_common/SrpKeyXListener.h $JS_FW/allseen/inc
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationReceiver.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/Notification.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationText.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationEnums.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/RichAudioUrl.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationAsyncTaskEvents.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationService.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/services/base/notification/cpp/inc/alljoyn/notification/NotificationSender.h $JS_FW/allseen/inc/alljoyn/notification
cp $AS_WS/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h $JS_FW/allseen/inc/alljoyn/about
cp $AS_WS/core/alljoyn/services/about/cpp/inc/alljoyn/about/PropertyStore.h $JS_FW/allseen/inc/alljoyn/about
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelController.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelDevice.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelSessionHandler.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelControllerUnit.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/NotificationAction.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/HttpControl.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelEnums.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/RootWidget.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/Widget.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/LanguageSet.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/Container.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/Property.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/Dialog.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/Action.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ConstraintList.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ConstraintRange.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/CPSDate.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/CPSTime.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelService.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelControllee.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelControlleeUnit.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanel.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelBusListener.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ControlPanelListener.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/controlpanel/cpp/inc/alljoyn/controlpanel/ActionWithDialog.h $JS_FW/allseen/inc/alljoyn/controlpanel
cp $AS_WS/services/base/services_common/cpp/inc/alljoyn/services_common/AsyncTaskQueue.h $JS_FW/allseen/inc/alljoyn/services_common
cp $AS_WS/services/base/services_common/cpp/inc/alljoyn/services_common/LogModulesNames.h $JS_FW/allseen/inc/alljoyn/services_common
/******************************************************************************
* 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 ANNOUNCEHANDLERSAMPLE_H_
#define ANNOUNCEHANDLERSAMPLE_H_
#include <alljoyn/AboutListener.h>
#include <alljoyn/AboutData.h>
namespace lsf {
class CLControlPanel;
/**
* class AnnounceHandlerCL
*/
class AnnounceHandlerCL : public ajn::AboutListener {
public:
/**
* Announced - announced callback
* @param busName
* @param version
* @param port
* @param objectDescriptionArg
* @param aboutDataArg
*/
virtual void Announced(const char* busName, uint16_t version, ajn::SessionPort port, const ajn::MsgArg& objectDescriptionArg, const ajn::MsgArg& aboutDataArg);
/**
* AnnounceHandlerCL
* @param basicCallback
* @param fullCallback
*/
AnnounceHandlerCL(CLControlPanel *theCLCP);
/**
* ~AnnounceHandlerCL
*/
~AnnounceHandlerCL();
private:
CLControlPanel *myCLCP;
};
}
#endif /* ANNOUNCEHANDLERSAMPLE_H_ */
#ifndef _CLCONTROLPANEL_H_
#define _CLCONTROLPANEL_H_
#include <Thread.h>
#include <signal.h>
#include <string>
#include <map>
#include <list>
// Copied from ControlPanelControllerSample.cc
#include <alljoyn/notification/NotificationService.h>
#include <alljoyn/controlpanel/ControlPanelService.h>
#include <alljoyn/controlpanel/ControlPanelController.h>
#include "AnnounceHandlerCL.h"
#include "ControlPanelListenerCL.h"
#include "ControllerNotificationReceiver.h"
#include <SrpKeyXListener.h>
#include <CommonSampleUtil.h>
#include <alljoyn/services_common/LogModulesNames.h>
using namespace std;
using namespace ajn;
using namespace services;
using namespace qcc;
namespace lsf {
class CLProxyManager;
// The ControlPanel class actually has nothing to to with a real Control Panel!
// The name is taken from the allseenalliance ControlPanelController sample application
// It's the code that allows controlling devices like the Smart Plug etc.
class CLControlPanel : public lsf::Thread {
public:
/**
* CLControlPanel constructor
*/
CLControlPanel(CLProxyManager *theProxyManager);
/**
* CLControlPanel destructor
*/
~CLControlPanel();
void Run();
void Stop();
QStatus Start();
void Join();
bool SetState(qcc::String szObjID, bool onOff);
void announceHandlerCallback(qcc::String const& busName, unsigned short version,
unsigned short port, ajn::AboutObjectDescription& objectDescription,
ajn::AboutData& aboutData, qcc::String szArgsXMLarray);
void changeHandleCallback(ajn::services::ControlPanelDevice* device, ajn::services::Property* property);
private:
bool Init();
bool bInitialized; // = false;
volatile sig_atomic_t isRunning; // = false;
CLProxyManager *myProxyManager;
// Copied from ControlPanelControllerSample.cc
BusAttachment* bus; // = 0;
ControlPanelService* controlPanelService; // = 0;
ControlPanelController* controlPanelController; // = 0;
ControlPanelListenerCL* controlPanelListener; // = 0;
SrpKeyXListener* srpKeyXListener; // = 0;
AnnounceHandlerCL* announceHandler; // = 0;
NotificationService* conService; // = 0;
ControllerNotificationReceiver* receiver; // = 0;
};
}
#endif // _CLCONTROLPANEL_H_
#ifndef _CLPROXYMANAGER_H_
#define _CLPROXYMANAGER_H_
/**
* \ingroup ControllerService
*/
/**
* @file
* This file provides definitions for CL Proxy
*/
#include <LSFTypes.h>
#include <LampManager.h>
#include "CLControlPanel.h"
#include <Thread.h>
#include <Mutex.h>
#include <qcc/Socket.h>
#include <qcc/Debug.h>
#include <signal.h>
#include <string>
#include <map>
#include <list>
#include <algorithm>
#define DFLT_BUFFER_SIZE 1024
#define DFLT_LOCAL_PORT 27000
#define DFLT_REMOTE_PORT 27000
#define DFLT_LOCAL_IP "0.0.0.0"
#define DFLT_REMOTE_IP "192.168.20.115"
using namespace std;
namespace lsf {
typedef std::pair<LSFString, LampState> LampObject;
class CLProxyManager : public lsf::Thread {
public:
/**
* CLProxyManager constructor
*/
CLProxyManager();
/**
* CLProxyManager destructor
*/
~CLProxyManager();
/**
* The methods below are for setting up the CLProxyManager as a controller to AJ
* After setting the LampManager, the controller will run in a separate thread