summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-25 12:56:15 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-25 12:56:15 +0900
commit90c11d9ea26f6c4d483ce69a082b37dc2f7d9d06 (patch)
treef1333de0b60ba7793866dfac1341d0dc79f7b5d8
parentd5f5846a33049b5f7e8b236223c8d587e760f03c (diff)
Clean: source code consistency
Consolidate the coding style into camelCase. Related change: https://gerrit.automotivelinux.org/gerrit/#/c/14707/ Change-Id: Ibf71280a0a7bde3b7b04218cff8aab9e503ec2cb Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/qlibsoundmanager.cpp16
-rw-r--r--src/qlibsoundmanager.h8
2 files changed, 12 insertions, 12 deletions
diff --git a/src/qlibsoundmanager.cpp b/src/qlibsoundmanager.cpp
index a7722d9..af910fe 100644
--- a/src/qlibsoundmanager.cpp
+++ b/src/qlibsoundmanager.cpp
@@ -108,21 +108,21 @@ int QSoundmanager::getListMainSinks(){
int QSoundmanager::getListMainConnections(){
return Soundmanager::getListMainConnections();
}
-int QSoundmanager::stream_open(const QString& audio_role, int endpoint_id){
+int QSoundmanager::streamOpen(const QString& audio_role, int endpoint_id){
string arole = audio_role.toStdString();
- return Soundmanager::stream_open(arole, endpoint_id);
+ return Soundmanager::streamOpen(arole, endpoint_id);
}
-int QSoundmanager::stream_open(const QString& audio_role, const QString& endpoint_id){
+int QSoundmanager::streamOpen(const QString& audio_role, const QString& endpoint_id){
string arole = audio_role.toStdString();
string eid = endpoint_id.toStdString();
- return Soundmanager::stream_open(arole, eid);
+ return Soundmanager::streamOpen(arole, eid);
}
-int QSoundmanager::stream_close(int stream_id){
- return Soundmanager::stream_close(stream_id);
+int QSoundmanager::streamClose(int stream_id){
+ return Soundmanager::streamClose(stream_id);
}
-int QSoundmanager::set_stream_state(int stream_id, int mute){
- return Soundmanager::set_stream_state(stream_id, mute);
+int QSoundmanager::setStreamState(int stream_id, int mute){
+ return Soundmanager::setStreamState(stream_id, mute);
}
diff --git a/src/qlibsoundmanager.h b/src/qlibsoundmanager.h
index 4c17002..bbe3da9 100644
--- a/src/qlibsoundmanager.h
+++ b/src/qlibsoundmanager.h
@@ -46,10 +46,10 @@ public:
Q_INVOKABLE int getListMainSinks();
Q_INVOKABLE int getListMainSources();
Q_INVOKABLE int getListMainConnections();
- Q_INVOKABLE int stream_open(const QString& audio_role, int endpoint_id);
- Q_INVOKABLE int stream_open(const QString& audio_role, const QString& endpoint_id = "default");
- Q_INVOKABLE int stream_close(int stream_id);
- Q_INVOKABLE int set_stream_state(int stream_id, int mute = 0); // 0 is unmute , 1 is mute
+ Q_INVOKABLE int streamOpen(const QString& audio_role, int endpoint_id);
+ Q_INVOKABLE int streamOpen(const QString& audio_role, const QString& endpoint_id = "default");
+ Q_INVOKABLE int streamClose(int stream_id);
+ Q_INVOKABLE int setStreamState(int stream_id, int mute = 0); // 0 is unmute , 1 is mute
signals:
void reply(const QVariant &msg);