2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * 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
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Geographical base class definition.
19 #ifndef LBTGEOAREABASE_H
20 #define LBTGEOAREABASE_H
26 * Base class for geographical area.
32 class CLbtGeoAreaBase : public CBase
36 * Type of geographical area
40 ECircle = 1, ///<Circular area
41 ERectangular = 2, ///<Rectangular area
47 IMPORT_C virtual ~CLbtGeoAreaBase();
50 * Gets the type of the geographical area
52 * @return The type of geographical area.
54 virtual TGeoAreaType Type() const = 0;
58 * Internalizes the trigger condition object's details and attributes
61 * The presence of this function means that the standard templated
62 * operator>>() ( defined in s32strm.h ) is available to internalize objects
65 * @param[in] aStream Stream from which the object should be internalized.
67 IMPORT_C void InternalizeL( RReadStream& aStream );
70 * Externalizes the trigger condition object's details and attributes
73 * The presence of this function means that the standard templated
74 * operator<<() ( defined in s32strm.h ) is available to externalize objects
77 * @param[in] aStream Stream to which the object should be externalized.
79 IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
88 * Internalize method that subclass must implement.
89 * @param[in] aStream Stream from which the object should be internalized.
91 virtual void DoInternalizeL( RReadStream& aStream ) = 0;
94 * Externalize method that subclass must implement.
95 * @param[in] aStream Stream to which the object should be externalized.
97 virtual void DoExternalizeL( RWriteStream& aStream ) const = 0;
102 * By default, prohibit copy constructor
104 CLbtGeoAreaBase( const CLbtGeoAreaBase& );
107 * Prohibit assigment operator
109 CLbtGeoAreaBase& operator= ( const CLbtGeoAreaBase& );
114 #endif //LBTGEOAREABASE_H