83
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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 |
|
|
10 |
|
|
11 |
#ifndef TSPROPERTYLISTENER_H
|
|
12 |
#define TSPROPERTYLISTENER_H
|
|
13 |
|
|
14 |
#include <e32base.h>
|
|
15 |
#include <e32property.h>
|
|
16 |
|
|
17 |
#include "tspreviewobserver.h"
|
|
18 |
|
|
19 |
// Publish & subscribe UID (akncapserver.exe SID so that it can define the keys)
|
|
20 |
const TUid KPSUidPreviewProvider = { 0x10207218 };
|
|
21 |
|
|
22 |
// P&S keys
|
|
23 |
const TUint32 KPSKeyWgId = 0x20016BE1;
|
|
24 |
const TUint32 KPSKeyFbsBitmapId = 0x20016BE2;
|
|
25 |
const TUint32 KPSKeyOperation = 0x20016BE3;
|
|
26 |
/**
|
|
27 |
* Operation which will be done after P&S keys have changed.
|
|
28 |
*/
|
|
29 |
enum TPreviewOperation
|
|
30 |
{
|
|
31 |
EOperationNone,
|
|
32 |
EOperationUnregister,
|
|
33 |
EOperationBitmapUpdated,
|
|
34 |
EOperationBitmapRotation90,
|
|
35 |
EOperationBitmapRotation270
|
|
36 |
};
|
|
37 |
|
|
38 |
/**
|
|
39 |
* CPropertyListener
|
|
40 |
*/
|
|
41 |
NONSHARABLE_CLASS( CTsPropertyListener ) : public CActive
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
static CTsPropertyListener* NewL( MTsFastSwapPreviewObserver& aObs );
|
|
45 |
virtual ~CTsPropertyListener();
|
|
46 |
|
|
47 |
protected:
|
|
48 |
CTsPropertyListener( MTsFastSwapPreviewObserver& aObs );
|
|
49 |
void ConstructL();
|
|
50 |
|
|
51 |
private: // From CActive
|
|
52 |
void RunL();
|
|
53 |
void DoCancel();
|
|
54 |
|
|
55 |
private:
|
|
56 |
void ReadPropertiesL();
|
|
57 |
void DefinePropertyL( TInt aPSKey );
|
|
58 |
void Subscribe();
|
|
59 |
|
|
60 |
private:
|
|
61 |
MTsFastSwapPreviewObserver& iObs;
|
|
62 |
RProperty iProperty;
|
|
63 |
|
|
64 |
TInt iWgId;
|
|
65 |
TInt iFbsBitmapId;
|
|
66 |
|
|
67 |
TPreviewOperation iOperation;
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // TSPROPERTYLISTENER_H
|
|
71 |
|
|
72 |
// End of file
|