|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMSRINGTONEBODYIMPL_H |
|
19 #define TMSRINGTONEBODYIMPL_H |
|
20 |
|
21 #include <w32std.h> |
|
22 #include <tms.h> |
|
23 #include "tmsringtonebody.h" |
|
24 |
|
25 namespace TMS { |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TMSRingToneObserver; |
|
29 class TMSProxy; |
|
30 class TMSRingTone; |
|
31 |
|
32 // TMSRingToneBodyImpl class |
|
33 class TMSRingToneBodyImpl : public TMSRingToneBody |
|
34 { |
|
35 public: |
|
36 static gint Create(TMSRingToneBody*& bodyimpl); |
|
37 static gint Create(TMSRingToneBody*& bodyimpl, RWindow& window, gint scrid); |
|
38 virtual ~TMSRingToneBodyImpl(); |
|
39 |
|
40 // From TMSRingToneBody |
|
41 virtual gint AddObserver(TMSRingToneObserver& obsrvr, gpointer user_data); |
|
42 virtual gint RemoveObserver(TMSRingToneObserver& obsrvr); |
|
43 virtual gint Init(const TMSRingToneType type, GString* str, GString* tts); |
|
44 virtual gint Deinit(); |
|
45 virtual gint Play(); |
|
46 virtual gint Stop(); |
|
47 virtual gint Pause(); |
|
48 virtual gint Mute(); |
|
49 |
|
50 void SetParent(TMSRingTone*& parent); |
|
51 |
|
52 private: |
|
53 TMSRingToneBodyImpl(); |
|
54 gint PostConstruct(); |
|
55 |
|
56 private: |
|
57 TMSRingToneObserver* iObserver; |
|
58 gpointer iUserData; |
|
59 TMSProxy* iProxy; |
|
60 TMSRingTone* iParent; |
|
61 guint iClientId; |
|
62 gint iScreenID; |
|
63 //RWindow iWindow; |
|
64 }; |
|
65 |
|
66 } //namespace TMS |
|
67 |
|
68 #endif //TMSRINGTONEBODYIMPL_H |
|
69 |
|
70 // End of file |
|
71 |