equal
deleted
inserted
replaced
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 #ifndef QTMSRINGTONEBODYIMPL_H |
|
19 #define QTMSRINGTONEBODYIMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include <tmsringtoneobsrvr.h> |
|
23 #include <qtms.h> |
|
24 #include <qtmsringtone.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 namespace TMS |
|
28 { |
|
29 class TMSRingTone; |
|
30 } |
|
31 |
|
32 namespace QTMS |
|
33 { |
|
34 |
|
35 // QTMSRingToneImpl class |
|
36 class QTMSRingToneImpl: public QTMSRingTone, public TMS::TMSRingToneObserver |
|
37 { |
|
38 public: |
|
39 static gint Create(QTMSRingTone*& qrt, TMS::TMSRingTone*& tmsrt); |
|
40 virtual ~QTMSRingToneImpl(); |
|
41 |
|
42 gint AddObserver(TMS::TMSRingToneObserver& obsrvr, gpointer user_data); |
|
43 gint RemoveObserver(TMS::TMSRingToneObserver& obsrvr); |
|
44 |
|
45 //from TMS::TMSRingToneObserver |
|
46 void RingtoneEvent(const TMS::TMSRingTone& rt, TMS::TMSSignalEvent event); |
|
47 |
|
48 private: |
|
49 QTMSRingToneImpl(); |
|
50 gint PostConstruct(); |
|
51 }; |
|
52 |
|
53 } //namespace QTMS |
|
54 |
|
55 #endif //QTMSRINGTONEBODYIMPL_H |
|
56 // End of file |
|
57 |
|