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 "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.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
48 IMPORT_C virtual ~CLbtGeoAreaBase();
51 * Gets the type of the geographical area
53 * @return The type of geographical area.
55 virtual TGeoAreaType Type() const = 0;
59 * Internalizes the trigger condition object's details and attributes
62 * The presence of this function means that the standard templated
63 * operator>>() ( defined in s32strm.h ) is available to internalize objects
66 * @param[in] aStream Stream from which the object should be internalized.
68 IMPORT_C void InternalizeL( RReadStream& aStream );
71 * Externalizes the trigger condition object's details and attributes
74 * The presence of this function means that the standard templated
75 * operator<<() ( defined in s32strm.h ) is available to externalize objects
78 * @param[in] aStream Stream to which the object should be externalized.
80 IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
89 * Internalize method that subclass must implement.
90 * @param[in] aStream Stream from which the object should be internalized.
92 virtual void DoInternalizeL( RReadStream& aStream ) = 0;
95 * Externalize method that subclass must implement.
96 * @param[in] aStream Stream to which the object should be externalized.
98 virtual void DoExternalizeL( RWriteStream& aStream ) const = 0;
103 * By default, prohibit copy constructor
105 CLbtGeoAreaBase( const CLbtGeoAreaBase& );
108 * Prohibit assigment operator
110 CLbtGeoAreaBase& operator= ( const CLbtGeoAreaBase& );
115 #endif //LBTGEOAREABASE_H