|
1 /* |
|
2 * Copyright (c) 2006 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 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Base class for XIMP API implementations. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "ximpapiobjbase.h" |
|
19 |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS ============================= |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // CXIMPApiObjBase::CXIMPApiObjBase() |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CXIMPApiObjBase::CXIMPApiObjBase() |
|
28 { |
|
29 } |
|
30 |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // CXIMPApiObjBase::~CXIMPApiObjBase() |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 EXPORT_C CXIMPApiObjBase::~CXIMPApiObjBase() |
|
37 { |
|
38 HandleUnknownGetInterface(0,MXIMPBase::EReturnNullIfUnknown); |
|
39 } |
|
40 |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // CXIMPApiObjBase::HandleUnknownGetInterface() |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 EXPORT_C TAny* CXIMPApiObjBase::HandleUnknownGetInterface( |
|
47 TInt32 aInterfaceId, |
|
48 MXIMPBase::TIfGetOps aOps ) const |
|
49 { |
|
50 XIMP_UNUSED_FORMAL_PARAM( aInterfaceId ); |
|
51 |
|
52 if( aOps == MXIMPBase::EPanicIfUnknown ) |
|
53 { |
|
54 #ifdef __WINS__ |
|
55 User::SetJustInTime(ETrue); |
|
56 #endif // __WINS__ |
|
57 |
|
58 User::Panic( _L("CXIMPApiObjBase"), KErrExtensionNotSupported ); |
|
59 } |
|
60 |
|
61 return NULL; |
|
62 } |
|
63 |
|
64 |
|
65 // End of file |