author | Sampo Huttunen <sampo.huttunen@nokia.com> |
Wed, 24 Nov 2010 09:39:46 +0200 | |
branch | IOP_Improvements |
changeset 45 | a6c41ca11adf |
parent 40 | 08b5eae9f9ff |
permissions | -rw-r--r-- |
40
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
1 |
/* |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
8 |
* |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
11 |
* |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
13 |
* |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
15 |
* |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
17 |
#ifndef EXAMPLEAPPENGINE_H |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
18 |
#define EXAMPLEAPPENGINE_H |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
19 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
20 |
#include <qobject.h> |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
21 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
22 |
class QFile; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
23 |
class ExampleAppEnginePrivate; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
24 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
25 |
class ExampleAppEngine : public QObject |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
26 |
{ |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
27 |
Q_OBJECT |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
28 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
29 |
public: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
30 |
enum |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
31 |
{ |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
32 |
PlaybackStateStopped, |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
33 |
PlaybackStatePaused, |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
34 |
PlaybackStateBuffering, |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
35 |
PlaybackStatePlaying |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
36 |
}; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
37 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
38 |
public: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
39 |
ExampleAppEngine(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
40 |
~ExampleAppEngine(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
41 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
42 |
public: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
43 |
void construct(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
44 |
int getIap() const; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
45 |
QString getIapName() const; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
46 |
bool isPauseSupported() const; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
47 |
bool isSeekSupported() const; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
48 |
int getPlaybackState() const; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
49 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
50 |
public slots: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
51 |
void searchRenderingDevices(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
52 |
void prepareRenderingDevice(const QString &uuid); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
53 |
int initFile(const QString& file); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
54 |
void play(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
55 |
void pause(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
56 |
void stop(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
57 |
void volumeUp(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
58 |
void volumeDown(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
59 |
void rew(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
60 |
void ff(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
61 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
62 |
signals: |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
63 |
void initComplete(int); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
64 |
void stateChanged(int); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
65 |
void renderingDeviceSearchStarted(); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
66 |
void renderingDeviceFound(const QString &, const QString &); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
67 |
void renderingDeviceDisappeared(const QString &, const QString &); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
68 |
void iapUpdated(const QString &); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
69 |
void iapUpdated(int); |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
70 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
71 |
private: // data |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
72 |
ExampleAppEnginePrivate* const d_ptr; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
73 |
Q_DECLARE_PRIVATE_D(d_ptr, ExampleAppEngine) |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
74 |
Q_DISABLE_COPY(ExampleAppEngine) |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
75 |
}; |
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
76 |
|
08b5eae9f9ff
merge from Nokia's internal development branch
Sampo Huttunen <sampo.huttunen@nokia.com>
parents:
diff
changeset
|
77 |
#endif // EXAMPLEAPPENGINE_H |