diff options
Diffstat (limited to 'AudioManagerDeamon/DBusCommandInterface.h')
-rw-r--r-- | AudioManagerDeamon/DBusCommandInterface.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/AudioManagerDeamon/DBusCommandInterface.h b/AudioManagerDeamon/DBusCommandInterface.h index 85b9a79..8eaa51f 100644 --- a/AudioManagerDeamon/DBusCommandInterface.h +++ b/AudioManagerDeamon/DBusCommandInterface.h @@ -23,11 +23,9 @@ * */ - #ifndef DBUSCOMMANDINTERFACE_H_ #define DBUSCOMMANDINTERFACE_H_ - #include "audioManagerIncludes.h" #include "DBusTypes.h" @@ -40,28 +38,28 @@ class AudioManagerCore; * It also implements some Application logic that needs to be triggered to execute the actions demanded by the HMI. * TODO: make a clear seperation between HMI Interface and Application Logic */ -class DBusCommandInterface : public QObject { - Q_OBJECT +class DBusCommandInterface: public QObject { +Q_OBJECT public: DBusCommandInterface(QObject *parent = 0); void registerAudioManagerCore(AudioManagerCore* core); void startupInterface(); - public slots: void slot_connectionChanged(); void slot_numberOfSinksChanged(); void slot_numberOfSourcesChanged(); -public Q_SLOTS: // METHODS - int connect(int Source_ID, int Sink_ID); - int disconnect(int Source_ID, int Sink_ID); - QList < ConnectionType > getListConnections(); - QList < SinkType > getListSinks(); - QList < SourceType > getListSources(); - int interruptRequest(const QString &SourceName, const QString &SinkName); - int interruptResume(int InterruptID); - int setVolume(int SinkID, int Volume); +public Q_SLOTS: + // METHODS + int connect(int Source_ID, int Sink_ID); + int disconnect(int Source_ID, int Sink_ID); + QList<ConnectionType> getListConnections(); + QList<SinkType> getListSinks(); + QList<SourceType> getListSources(); + int interruptRequest(const QString &SourceName, const QString &SinkName); + int interruptResume(int InterruptID); + int setVolume(int SinkID, int Volume); Q_SIGNALS: // SIGNALS void signal_connectionChanged(); @@ -71,7 +69,7 @@ Q_SIGNALS: // SIGNALS void signal_interruptResume(genInt_t interruptID); private: - QList <int> getSourceIDsForSinkID(int SinkID); + QList<int> getSourceIDsForSinkID(int SinkID); AudioManagerCore* m_core; }; |