51
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@publishedPartner
|
|
19 |
@released
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef REMCONCONVERTERPLUGIN_H
|
|
23 |
#define REMCONCONVERTERPLUGIN_H
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <remcon/messagetype.h>
|
|
27 |
|
|
28 |
/**
|
|
29 |
The UID of the RemCon converter interface. Implementors of new converters are
|
|
30 |
implementing this interface. The converter interface is simply a means of
|
|
31 |
supplying implementations of the 'converter API' to RemCon. The converter API
|
|
32 |
may change over time, so this extension pattern is used.
|
|
33 |
*/
|
|
34 |
const TInt KRemConConverterInterfaceUid = 0x10205C43;
|
|
35 |
|
|
36 |
/**
|
|
37 |
Base class for RemCon converter plugins.
|
|
38 |
*/
|
|
39 |
class CRemConConverterPlugin : public CBase
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
/**
|
|
43 |
Constructor.
|
|
44 |
@param aImplementationUid The implemention UID.
|
|
45 |
@return Ownership of a new converter plugin.
|
|
46 |
*/
|
|
47 |
IMPORT_C static CRemConConverterPlugin* NewL(TUid aImplementationId);
|
|
48 |
|
|
49 |
/** Destructor. */
|
|
50 |
IMPORT_C ~CRemConConverterPlugin();
|
|
51 |
|
|
52 |
public:
|
|
53 |
/**
|
|
54 |
Called by RemCon server to get a pointer to an object which implements the
|
|
55 |
converter API with UID aUid. This is a mechanism for allowing future
|
|
56 |
change to the converter API without breaking BC in existing (non-updated)
|
|
57 |
converter plugins.
|
|
58 |
*/
|
|
59 |
virtual TAny* GetInterface(TUid aUid) = 0;
|
|
60 |
|
|
61 |
protected:
|
|
62 |
/** Constructor
|
|
63 |
@param aObserver To be notified of the completion of requests.
|
|
64 |
@param aImplementationId Identifier of the concrete implementation.
|
|
65 |
*/
|
|
66 |
IMPORT_C CRemConConverterPlugin();
|
|
67 |
|
|
68 |
private: // owned
|
|
69 |
/**
|
|
70 |
UID set by ECOM when the instance is created. Used when the instance is
|
|
71 |
destroyed.
|
|
72 |
*/
|
|
73 |
TUid iInstanceId;
|
|
74 |
|
|
75 |
/**
|
|
76 |
Pad for BC-friendly future change.
|
|
77 |
*/
|
|
78 |
TAny* iPad;
|
|
79 |
};
|
|
80 |
|
|
81 |
#endif // REMCONCONVERTERPLUGIN_H
|