|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: QT Bindings for TMS |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <tmsringtone.h> |
|
19 #include <qtmsringtone.h> |
|
20 #include "qtmsringtoneimpl.h" |
|
21 |
|
22 using namespace QTMS; |
|
23 |
|
24 QTMSRingTone::QTMSRingTone() : |
|
25 iRingTone(NULL) |
|
26 { |
|
27 } |
|
28 |
|
29 QTMSRingTone::~QTMSRingTone() |
|
30 { |
|
31 delete iRingTone; |
|
32 } |
|
33 |
|
34 gint QTMSRingTone::Init(const QTMSRingToneType type, GString* str, GString* tts) |
|
35 { |
|
36 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
37 if (iRingTone) { |
|
38 status = iRingTone->Init(type, str, tts); |
|
39 } |
|
40 return status; |
|
41 } |
|
42 |
|
43 gint QTMSRingTone::Deinit() |
|
44 { |
|
45 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
46 if (iRingTone) { |
|
47 status = iRingTone->Deinit(); |
|
48 } |
|
49 return status; |
|
50 } |
|
51 |
|
52 gint QTMSRingTone::Play() |
|
53 { |
|
54 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
55 if (iRingTone) { |
|
56 status = iRingTone->Play(); |
|
57 } |
|
58 return status; |
|
59 } |
|
60 |
|
61 gint QTMSRingTone::Stop() |
|
62 { |
|
63 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
64 if (iRingTone) { |
|
65 status = iRingTone->Stop(); |
|
66 } |
|
67 return status; |
|
68 } |
|
69 |
|
70 gint QTMSRingTone::Pause() |
|
71 { |
|
72 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
73 if (iRingTone) { |
|
74 status = iRingTone->Pause(); |
|
75 } |
|
76 return status; |
|
77 } |
|
78 |
|
79 gint QTMSRingTone::Mute() |
|
80 { |
|
81 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
82 if (iRingTone) { |
|
83 status = iRingTone->Mute(); |
|
84 } |
|
85 return status; |
|
86 } |
|
87 |
|
88 // End of file |