sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
#if defined (_MSC_VER) && (_MSC_VER >= 1000)
|
sl@0
|
21 |
#pragma once
|
sl@0
|
22 |
#endif
|
sl@0
|
23 |
#if (!defined __TEST_ECOM_INTERFACE_H__)
|
sl@0
|
24 |
#define __TEST_ECOM_INTERFACE_H__
|
sl@0
|
25 |
|
sl@0
|
26 |
#include <e32base.h>
|
sl@0
|
27 |
#include <ecom/ecom.h>
|
sl@0
|
28 |
|
sl@0
|
29 |
#define CTestEComInterface_UID 0x2000371E
|
sl@0
|
30 |
|
sl@0
|
31 |
|
sl@0
|
32 |
class CTestEComInterface : public CBase
|
sl@0
|
33 |
{
|
sl@0
|
34 |
/**
|
sl@0
|
35 |
@internalComponent
|
sl@0
|
36 |
CTestEComInterface which is an example abstract class being representative
|
sl@0
|
37 |
of the concrete class which the client wishes to use.
|
sl@0
|
38 |
It acts as a base, for a real class to provide all the
|
sl@0
|
39 |
functionality that a client requires.
|
sl@0
|
40 |
It supplies instantiation & destruction by using
|
sl@0
|
41 |
the ECom framework, and functional services
|
sl@0
|
42 |
by using the methods of the actual class.
|
sl@0
|
43 |
*/
|
sl@0
|
44 |
public:
|
sl@0
|
45 |
//The function which instantiates an object of this type
|
sl@0
|
46 |
//using aUid as a resolution parameter.
|
sl@0
|
47 |
//(eg NewL for a CBase derived object).
|
sl@0
|
48 |
static CTestEComInterface* NewL(const TUid aUid);
|
sl@0
|
49 |
|
sl@0
|
50 |
//Standardised destructor.
|
sl@0
|
51 |
virtual ~CTestEComInterface();
|
sl@0
|
52 |
|
sl@0
|
53 |
//Pure interface method
|
sl@0
|
54 |
//Representative of a method provided on the interface by
|
sl@0
|
55 |
//the interface definer.
|
sl@0
|
56 |
virtual void DoMethod1L() = 0;
|
sl@0
|
57 |
|
sl@0
|
58 |
//Pure interface method
|
sl@0
|
59 |
//Representative of a method provided on the interface by
|
sl@0
|
60 |
//the interface definer.
|
sl@0
|
61 |
virtual TInt DoMethod2L() = 0;
|
sl@0
|
62 |
|
sl@0
|
63 |
protected:
|
sl@0
|
64 |
//Default constructor
|
sl@0
|
65 |
inline CTestEComInterface();
|
sl@0
|
66 |
|
sl@0
|
67 |
//Attributes
|
sl@0
|
68 |
public:
|
sl@0
|
69 |
TUid iDtor_ID_Key;
|
sl@0
|
70 |
};
|
sl@0
|
71 |
|
sl@0
|
72 |
#include "TestEComInterface.inl"
|
sl@0
|
73 |
|
sl@0
|
74 |
#endif /* __TEST_ECOM_INTERFACE_H__ */
|