epoc32/include/mw/lbtgeoareabase.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     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
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  Geographical base class definition.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef LBTGEOAREABASE_H
williamr@2
    20
#define LBTGEOAREABASE_H
williamr@2
    21
williamr@2
    22
#include <e32base.h>
williamr@2
    23
#include <s32strm.h>
williamr@2
    24
williamr@2
    25
/**
williamr@2
    26
 * Base class for geographical area.
williamr@2
    27
 *
williamr@2
    28
 * @lib lbt.lib
williamr@2
    29
 *
williamr@2
    30
 * @since S60 5.1
williamr@2
    31
 */
williamr@2
    32
class CLbtGeoAreaBase : public CBase
williamr@2
    33
    {
williamr@2
    34
public:
williamr@2
    35
    /** 
williamr@2
    36
     * Type of geographical area
williamr@2
    37
     */
williamr@2
    38
    enum TGeoAreaType
williamr@2
    39
        {
williamr@2
    40
        ECircle = 1,    ///<Circular area
williamr@2
    41
        ERectangular = 2,     ///<Rectangular area
williamr@2
    42
        ECellular = 3
williamr@2
    43
        };
williamr@2
    44
    /**
williamr@2
    45
     * Destructor
williamr@2
    46
     */
williamr@2
    47
    IMPORT_C virtual ~CLbtGeoAreaBase();
williamr@2
    48
williamr@2
    49
    /**
williamr@2
    50
     * Gets the type of the geographical area
williamr@2
    51
     * 
williamr@2
    52
     * @return The type of geographical area.
williamr@2
    53
     */
williamr@2
    54
    virtual TGeoAreaType Type() const = 0;
williamr@2
    55
    
williamr@2
    56
          
williamr@2
    57
    /**
williamr@2
    58
     * Internalizes the trigger condition object's details and attributes 
williamr@2
    59
     * from stream.
williamr@2
    60
     *
williamr@2
    61
     * The presence of this function means that the standard templated 
williamr@2
    62
     * operator>>() ( defined in s32strm.h ) is available to internalize objects 
williamr@2
    63
     * of this class.
williamr@2
    64
     *
williamr@2
    65
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
    66
     */
williamr@2
    67
    IMPORT_C void InternalizeL( RReadStream& aStream );
williamr@2
    68
    
williamr@2
    69
    /**
williamr@2
    70
     * Externalizes the trigger condition object's details and attributes
williamr@2
    71
     * to stream.
williamr@2
    72
     *
williamr@2
    73
     * The presence of this function means that the standard templated 
williamr@2
    74
     * operator<<() ( defined in s32strm.h ) is available to externalize objects 
williamr@2
    75
     * of this class.
williamr@2
    76
     *
williamr@2
    77
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
    78
     */
williamr@2
    79
    IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
williamr@2
    80
    
williamr@2
    81
protected:
williamr@2
    82
    /**
williamr@2
    83
     * Default constructor
williamr@2
    84
     */  
williamr@2
    85
    CLbtGeoAreaBase();
williamr@2
    86
  
williamr@2
    87
    /**
williamr@2
    88
     * Internalize method that subclass must implement.
williamr@2
    89
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
    90
     */
williamr@2
    91
    virtual void DoInternalizeL( RReadStream& aStream ) = 0;
williamr@2
    92
    
williamr@2
    93
    /**
williamr@2
    94
     * Externalize method that subclass must implement.
williamr@2
    95
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
    96
     */
williamr@2
    97
    virtual void DoExternalizeL( RWriteStream& aStream ) const = 0;
williamr@2
    98
    
williamr@2
    99
williamr@2
   100
private:
williamr@2
   101
    /**
williamr@2
   102
     * By default, prohibit copy constructor
williamr@2
   103
     */
williamr@2
   104
    CLbtGeoAreaBase( const CLbtGeoAreaBase& );
williamr@2
   105
    
williamr@2
   106
    /**
williamr@2
   107
     * Prohibit assigment operator
williamr@2
   108
     */
williamr@2
   109
    CLbtGeoAreaBase& operator= ( const CLbtGeoAreaBase& );
williamr@2
   110
williamr@2
   111
    };
williamr@2
   112
williamr@2
   113
williamr@2
   114
#endif //LBTGEOAREABASE_H