| 1 | /* |
|---|
| 2 | * QuteCom, a voice over Internet phone |
|---|
| 3 | * Copyright (C) 2010 Mbdsys |
|---|
| 4 | * |
|---|
| 5 | * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | * it under the terms of the GNU General Public License as published by |
|---|
| 7 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | * (at your option) any later version. |
|---|
| 9 | * |
|---|
| 10 | * This program is distributed in the hope that it will be useful, |
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | * GNU General Public License for more details. |
|---|
| 14 | * |
|---|
| 15 | * You should have received a copy of the GNU General Public License |
|---|
| 16 | * along with this program; if not, write to the Free Software |
|---|
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 18 | */ |
|---|
| 19 | |
|---|
| 20 | #include "NullWenbox.h" |
|---|
| 21 | |
|---|
| 22 | #include <util/StringList.h> |
|---|
| 23 | |
|---|
| 24 | IWenbox * getInstance() { |
|---|
| 25 | NullWenbox * wenbox = new NullWenbox(); |
|---|
| 26 | return wenbox; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | NullWenbox::NullWenbox() { |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | NullWenbox::~NullWenbox() { |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | void NullWenbox::setKeyPressedCallback(KeyPressedCallback keyPressedCallback, void * param) { |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | bool NullWenbox::open() { |
|---|
| 39 | return false; |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | bool NullWenbox::close() { |
|---|
| 43 | return false; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | std::string NullWenbox::getDeviceName() { |
|---|
| 47 | return "NullWenbox"; |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | std::list<std::string> NullWenbox::getAudioDeviceNameList() const { |
|---|
| 51 | StringList strList; |
|---|
| 52 | strList += "NullWenbox"; |
|---|
| 53 | return strList; |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | bool NullWenbox::setDefaultMode(Mode mode) { |
|---|
| 57 | return false; |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | bool NullWenbox::switchMode(Mode mode) { |
|---|
| 61 | return false; |
|---|
| 62 | } |
|---|
| 63 | |
|---|
| 64 | bool NullWenbox::setLCDMessage(const std::string & message) { |
|---|
| 65 | return false; |
|---|
| 66 | } |
|---|
| 67 | |
|---|
| 68 | bool NullWenbox::setRingingTone(int tone) { |
|---|
| 69 | return false; |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | bool NullWenbox::setState(PhoneCallState state, const std::string & phoneNumber) { |
|---|
| 73 | return false; |
|---|
| 74 | } |
|---|