diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-04-04 15:27:10 +0200 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-04-04 15:49:13 +0200 |
commit | 06476e68a42077a0597628dca1c4a53cd20f5236 (patch) | |
tree | d8fbcaf89eb159ee76c7260bd6999558952dd9e8 /PluginRoutingInterfaceDbus/include/CAmDbusSend.h | |
parent | 1f4b52faf447b12f1900c91db5090e04feb33578 (diff) | |
download | audiomanager-06476e68a42077a0597628dca1c4a53cd20f5236.tar.gz |
* some enhancement to routingPluginDbus to make to get acces to all interfaces and handle multiple domains
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
Diffstat (limited to 'PluginRoutingInterfaceDbus/include/CAmDbusSend.h')
-rw-r--r-- | PluginRoutingInterfaceDbus/include/CAmDbusSend.h | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/PluginRoutingInterfaceDbus/include/CAmDbusSend.h b/PluginRoutingInterfaceDbus/include/CAmDbusSend.h index 65fe0bd..3f8f0a5 100644 --- a/PluginRoutingInterfaceDbus/include/CAmDbusSend.h +++ b/PluginRoutingInterfaceDbus/include/CAmDbusSend.h @@ -1,7 +1,9 @@ /** * Copyright (c) copyright 2011-2012 Aricent® Group and its licensors + * Copyright (c) 2012 BMW * - * \author: Sampreeth Ramavana + * \author Sampreeth Ramavana + * \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012 * * \copyright * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, @@ -20,25 +22,31 @@ //#include "headers.h" #include <dbus/dbus.h> +#include <string> +#include <vector> +#include "audiomanagertypes.h" -class CAmDbusSend { +namespace am +{ + +class CAmRoutingDbusSend +{ public: - CAmDbusSend(DBusConnection* conn, const char* bus_name,const char* path, const char* interface, const char* method); - virtual ~CAmDbusSend(); - void appendString(char* string); - void appendInteger(int integer); - void sendReply(bool* reply); - void sendReply(int* reply); - void sendReply(void); - void Replyint32(int *reply); + CAmRoutingDbusSend(DBusConnection* conn, std::string bus_name, std::string path, std::string interface, std::string method); + virtual ~CAmRoutingDbusSend(); + void append(std::string string); + void append(uint16_t integer); + void append(int16_t integer); + void append(std::vector<am_SoundProperty_s> listSoundProperties); + void append(am_SoundProperty_s soundProperty); + am_Error_e send(); private: - DBusMessage* m_msg; - DBusMessageIter m_args; - DBusConnection* m_conn; - DBusMessage* replymsg; - //DBusMessageIter args; - DBusMessageIter mDBusMessageIter; + DBusMessage* mpDbusMessage; + DBusConnection* mpDbusConnection; + DBusMessageIter mDbusMessageIter; + DBusError mDBusError; }; +} #endif /* _CAMDBUSSEND_H_ */ |