|
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 QTMS_GLOBAL_ROUTING_IMPL_H |
|
19 #define QTMS_GLOBAL_ROUTING_IMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include <qtms.h> |
|
23 #include <qtmsglobalrouting.h> |
|
24 #include <tmsglobalroutingobsrvr.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 namespace TMS |
|
28 { |
|
29 class TMSGlobalRouting; |
|
30 } |
|
31 |
|
32 namespace QTMS |
|
33 { |
|
34 |
|
35 // QTMSGlobalRoutingImpl class |
|
36 class QTMSGlobalRoutingImpl: public QTMSGlobalRouting, public TMS::TMSGlobalRoutingObserver |
|
37 { |
|
38 public: |
|
39 |
|
40 static gint Create(QTMSGlobalRouting*& qrouting, TMS::TMSGlobalRouting*& tmsrouting); |
|
41 virtual ~QTMSGlobalRoutingImpl(); |
|
42 |
|
43 gint AddObserver(TMS::TMSGlobalRoutingObserver& obsrvr, gpointer user_data); |
|
44 gint RemoveObserver(TMS::TMSGlobalRoutingObserver& obsrvr); |
|
45 |
|
46 //from TMSGlobalRoutingObserver |
|
47 void GlobalRoutingEvent(const TMS::TMSGlobalRouting& routing, TMS::TMSSignalEvent event, |
|
48 TMS::TMSAudioOutput output); |
|
49 |
|
50 private: |
|
51 QTMSGlobalRoutingImpl(); |
|
52 gint PostConstruct(); |
|
53 }; |
|
54 |
|
55 } //namespace QTMS |
|
56 |
|
57 #endif // QTMS_GLOBAL_ROUTING_IMPL_H |
|
58 // End of file |