|
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: |
|
15 * The header file for tone fetcher engine private class of symbian platform. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TONEFETCHERENGINEPRIVATE_H |
|
20 #define TONEFETCHERENGINEPRIVATE_H |
|
21 |
|
22 //#include <e32base.h> |
|
23 #include "MToneSelectionWatcher.h" |
|
24 #include "MTonePlayingWatcher.h" |
|
25 #include <QObject> |
|
26 #include <QStringList> |
|
27 |
|
28 class CToneSelection; |
|
29 class CTonePlayer; |
|
30 |
|
31 class ToneFetcherEnginePrivate : public QObject, |
|
32 public MToneSelectionWatcher, |
|
33 public MTonePlayingWatcher |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 ToneFetcherEnginePrivate(); |
|
39 virtual ~ToneFetcherEnginePrivate(); |
|
40 void getTones(); |
|
41 void play( const QString &file ); |
|
42 bool isPlaying(); |
|
43 void stopPlaying(); |
|
44 |
|
45 public: |
|
46 //from MToneSelectionWatcher |
|
47 void HandleMdeSessionError( TInt aError ); |
|
48 void HandleMdeSessionOpened(); |
|
49 void HandleQueryError( TInt aError ); |
|
50 void HandleQueryComplete( RPointerArray<TDesC>& aResultArray ); |
|
51 void HandleObjectChanged(); |
|
52 //from MTonePlayingWatcher |
|
53 void HandlePreviewEvent( TInt event ); |
|
54 |
|
55 signals: |
|
56 void mdeSessionOpened(); |
|
57 void mdeSessionError(int error); |
|
58 void queryComplete(const QStringList& uriList); |
|
59 void queryError(int error); |
|
60 void notifyObjectChanged(); |
|
61 void notifyPreviewEvent(int event); |
|
62 |
|
63 private: |
|
64 QStringList mResultList; |
|
65 CToneSelection* mToneSelection; |
|
66 CTonePlayer* mTonePlayer; |
|
67 }; |
|
68 #endif /* TONEFETCHERENGINEPRIVATE_H */ |