From 90c11d9ea26f6c4d483ce69a082b37dc2f7d9d06 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 25 Jul 2018 12:56:15 +0900 Subject: 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 --- src/qlibsoundmanager.cpp | 16 ++++++++-------- src/qlibsoundmanager.h | 8 ++++---- 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); -- cgit 1.2.3-korg