examples/ForumNokia/EComCalculator/plugin/src/EComImplementationMultiply.cpp

00001 /*
00002  * ============================================================================
00003  *  Name     : CImplementationClassMultiply from EComImplementationMultiply.cpp
00004  *  Part of  : EComCalculator
00005  *  Created  : 17/11/2003 by Forum Nokia
00006  *  Version  : 1.0
00007  *  Copyright: Nokia Corporation
00008  * ============================================================================
00009  */
00010 
00011 #include "EComImplementationMultiply.h"
00012 
00013 // Create instance of concrete ECOM interface implementation
00014 CImplementationClassMultiply* CImplementationClassMultiply::NewL()
00015     {
00016     CImplementationClassMultiply* self =
00017         new(ELeave) CImplementationClassMultiply();
00018     CleanupStack::PushL(self);
00019     self->ConstructL();
00020     CleanupStack::Pop(self);
00021     return self;
00022     }
00023 
00024 // Destructor
00025 CImplementationClassMultiply::~CImplementationClassMultiply()
00026     {
00027     }
00028 
00029 // Constructor
00030 CImplementationClassMultiply::CImplementationClassMultiply()
00031     {
00032     }
00033 
00034 // Second phase construction.
00035 void CImplementationClassMultiply::ConstructL()
00036     {
00037     // This implementation is simple enough so no special construction needed.
00038 
00039     }
00040 
00041 // Implementation of CCalculationInterfaceDefinition
00042 TReal CImplementationClassMultiply::Calculate(TReal aA, TReal aB)
00043     {
00044         return aA * aB;
00045     }

Generated by  doxygen 1.6.2