williamr@2: /* williamr@2: * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * 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 williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Geographical base class definition. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef LBTGEOAREABASE_H williamr@2: #define LBTGEOAREABASE_H williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: /** williamr@2: * Base class for geographical area. williamr@2: * williamr@2: * @lib lbt.lib williamr@2: * williamr@2: * @since S60 5.1 williamr@2: */ williamr@2: class CLbtGeoAreaBase : public CBase williamr@2: { williamr@2: public: williamr@2: /** williamr@2: * Type of geographical area williamr@2: */ williamr@2: enum TGeoAreaType williamr@2: { williamr@2: ECircle = 1, ///>() ( defined in s32strm.h ) is available to internalize objects williamr@2: * of this class. williamr@2: * williamr@2: * @param[in] aStream Stream from which the object should be internalized. williamr@2: */ williamr@2: IMPORT_C void InternalizeL( RReadStream& aStream ); williamr@2: williamr@2: /** williamr@2: * Externalizes the trigger condition object's details and attributes williamr@2: * to stream. williamr@2: * williamr@2: * The presence of this function means that the standard templated williamr@2: * operator<<() ( defined in s32strm.h ) is available to externalize objects williamr@2: * of this class. williamr@2: * williamr@2: * @param[in] aStream Stream to which the object should be externalized. williamr@2: */ williamr@2: IMPORT_C void ExternalizeL( RWriteStream& aStream ) const; williamr@2: williamr@2: protected: williamr@2: /** williamr@2: * Default constructor williamr@2: */ williamr@2: CLbtGeoAreaBase(); williamr@2: williamr@2: /** williamr@2: * Internalize method that subclass must implement. williamr@2: * @param[in] aStream Stream from which the object should be internalized. williamr@2: */ williamr@2: virtual void DoInternalizeL( RReadStream& aStream ) = 0; williamr@2: williamr@2: /** williamr@2: * Externalize method that subclass must implement. williamr@2: * @param[in] aStream Stream to which the object should be externalized. williamr@2: */ williamr@2: virtual void DoExternalizeL( RWriteStream& aStream ) const = 0; williamr@2: williamr@2: williamr@2: private: williamr@2: /** williamr@2: * By default, prohibit copy constructor williamr@2: */ williamr@2: CLbtGeoAreaBase( const CLbtGeoAreaBase& ); williamr@2: williamr@2: /** williamr@2: * Prohibit assigment operator williamr@2: */ williamr@2: CLbtGeoAreaBase& operator= ( const CLbtGeoAreaBase& ); williamr@2: williamr@2: }; williamr@2: williamr@2: williamr@2: #endif //LBTGEOAREABASE_H