00001 /* 00002 * ============================================================================ 00003 * Name : CCalculationInterfaceDefinition from EComInterfaceDefinition.h 00004 * Part of : EComCalculator 00005 * Created : 17/11/2003 by Forum Nokia 00006 * Version : 1.0 00007 * Copyright: Nokia Corporation 00008 * ============================================================================ 00009 */ 00010 00011 #ifndef __CCALCULATE_INTERFACEDEFINITION__ 00012 #define __CCALCULATE_INTERFACEDEFINITION__ 00013 00014 #include00015 #include 00016 #include 00017 00028 #ifdef __SERIES60_3X__ 00029 const TUid KCalculateInterfaceDefinitionUid = {0xE0009DC1}; 00030 #else 00031 const TUid KCalculateInterfaceDefinitionUid = {0x10009DC1}; 00032 #endif 00033 00042 class CCalculationInterfaceDefinition : public CBase 00043 { 00044 public: // Wrapper functions to handle ECOM "connectivity". 00045 // These are implemented in EComInterfaceDefinition.inl. 00046 // These functions are used only by the client. 00068 static CCalculationInterfaceDefinition* NewL(const TDesC8& aOperationName); 00069 00077 virtual ~CCalculationInterfaceDefinition(); 00078 00079 public: // Public pure virtual functions, which are implemented by 00080 // interface implementations (See ..\plugin) 00081 00095 virtual TReal Calculate(TReal aA, TReal aB) = 0; 00096 00097 private: 00098 00105 TUid iDtor_ID_Key; 00106 }; 00107 00108 #include "EcomInterfaceDefinition.inl" // Our own base implementations for ECOM 00109 00110 #endif // __CCALCULATE_INTERFACEDEFINITION__
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.