author | hgs |
Fri, 06 Aug 2010 17:13:32 -0500 | |
changeset 50 | 762d760dcfdf |
parent 27 | cbb1bfb7ebfb |
permissions | -rw-r--r-- |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: QT Bindings for TMS |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
#include <tmsglobalgaineffect.h> |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#include <qtmsglobalgaineffect.h> |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#include "qtmsglobalgaineffectimpl.h" |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
#include "qtmswrapperexport.h" |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
using namespace QTMS; |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
using namespace TMS; |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
QTMSGlobalGainEffect::QTMSGlobalGainEffect() : |
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
iEffect(NULL) |
50 | 28 |
{ |
29 |
} |
|
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
QTMSGlobalGainEffect::~QTMSGlobalGainEffect() |
50 | 32 |
{ |
33 |
delete (static_cast<TMSGlobalGainEffect*> (iEffect)); |
|
34 |
} |
|
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
gint QTMSGlobalGainEffect::GetLevel(guint& level) |
50 | 37 |
{ |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
50 | 39 |
if (iEffect) { |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetLevel(level); |
50 | 41 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
return status; |
50 | 43 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
gint QTMSGlobalGainEffect::SetLevel(const guint level) |
50 | 46 |
{ |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
50 | 48 |
if (iEffect) { |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
status = static_cast<TMSGlobalGainEffect*> (iEffect)->SetLevel(level); |
50 | 50 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
return status; |
50 | 52 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
gint QTMSGlobalGainEffect::GetMaxLevel(guint& level) |
50 | 55 |
{ |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
50 | 57 |
if (iEffect) { |
58 |
status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetMaxLevel(level); |
|
59 |
} |
|
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
return status; |
50 | 61 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
63 |
gint QTMSGlobalGainEffect::GetType(QTMSSourceType& sourcetype) |
50 | 64 |
{ |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
65 |
gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
50 | 66 |
if (iEffect) { |
67 |
status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetType(sourcetype); |
|
68 |
} |
|
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
return status; |
50 | 70 |
} |
27
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
|
cbb1bfb7ebfb
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
72 |
// End of file |