diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/mw/lbtgeoareabase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/mw/lbtgeoareabase.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,114 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Geographical base class definition. +* +*/ + + +#ifndef LBTGEOAREABASE_H +#define LBTGEOAREABASE_H + +#include +#include + +/** + * Base class for geographical area. + * + * @lib lbt.lib + * + * @since S60 5.1 + */ +class CLbtGeoAreaBase : public CBase + { +public: + /** + * Type of geographical area + */ + enum TGeoAreaType + { + ECircle = 1, ///>() ( defined in s32strm.h ) is available to internalize objects + * of this class. + * + * @param[in] aStream Stream from which the object should be internalized. + */ + IMPORT_C void InternalizeL( RReadStream& aStream ); + + /** + * Externalizes the trigger condition object's details and attributes + * to stream. + * + * The presence of this function means that the standard templated + * operator<<() ( defined in s32strm.h ) is available to externalize objects + * of this class. + * + * @param[in] aStream Stream to which the object should be externalized. + */ + IMPORT_C void ExternalizeL( RWriteStream& aStream ) const; + +protected: + /** + * Default constructor + */ + CLbtGeoAreaBase(); + + /** + * Internalize method that subclass must implement. + * @param[in] aStream Stream from which the object should be internalized. + */ + virtual void DoInternalizeL( RReadStream& aStream ) = 0; + + /** + * Externalize method that subclass must implement. + * @param[in] aStream Stream to which the object should be externalized. + */ + virtual void DoExternalizeL( RWriteStream& aStream ) const = 0; + + +private: + /** + * By default, prohibit copy constructor + */ + CLbtGeoAreaBase( const CLbtGeoAreaBase& ); + + /** + * Prohibit assigment operator + */ + CLbtGeoAreaBase& operator= ( const CLbtGeoAreaBase& ); + + }; + + +#endif //LBTGEOAREABASE_H