2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
14 * @brief This file is definition of CicoSound class
16 //==========================================================================
17 #ifndef __CICO_SOUND_H__
18 #define __CICO_SOUND_H__
22 #define ICO_CONFIG_SOUND "sound"
23 #define ICO_CONFIG_COMMAND "command"
24 #define ICO_CONFIG_OPERATION "operation"
25 #define ICO_CONFIG_SUCCESS "success"
26 #define ICO_CONFIG_FAILURE "failure"
28 #define ICO_SOUND_DEFAULT_COMMAND "paplay --stream-name=HOMESCREEN_BEEP"
29 #define ICO_SOUND_DEFAULT_OPERATION "/usr/apps/org.tizen.ico.homescreen/res/sound/operation.wav"
30 #define ICO_SOUND_DEFAULT_SUCCESS "/usr/apps/org.tizen.ico.homescreen/res/sound/success.wav"
31 #define ICO_SOUND_DEFAULT_FAILURE "/usr/apps/org.tizen.ico.homescreen/res/sound/failure.wav"
33 //--------------------------------------------------------------------------
35 * @brief sound of operation function
37 //--------------------------------------------------------------------------
41 // get singleton instance
42 static CicoSound* GetInstance(void);
45 bool Initialize(CicoGKeyFileConfig *hs_config);
48 bool PlaySound(std::string & soundFile);
50 // play opreration sound
51 bool PlayOperationSound(void);
54 bool PlaySuccessSound(void);
57 bool PlayFailureSound(void);
60 // default constructor
66 // assignment operator
67 CicoSound operator=(const CicoSound&);
70 CicoSound(const CicoSound&);
74 static CicoSound *m_myInstance;
80 std::string m_command;
82 // operation sound file
83 std::string m_operationSFile;
86 std::string m_successSFile;
89 std::string m_failureSFile;
91 #endif //__CICO_SOUND_H__
92 // vim: set expandtab ts=4 sw=4: