epoc32/include/mw/lbttriggerfilterbase.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
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@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.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:  Abstract base class for filter when listing triggers.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef LBTTRIGGERFILTERBASE_H
williamr@2
    20
#define LBTTRIGGERFILTERBASE_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
 * Abstract base class for filter when listing triggers from 
williamr@2
    27
 * Location Triggering Server.
williamr@2
    28
 *
williamr@2
    29
 * @lib lbt.lib
williamr@2
    30
 * @since S60 5.1
williamr@2
    31
 */
williamr@2
    32
class CLbtTriggerFilterBase : public CBase
williamr@2
    33
    {
williamr@2
    34
public:
williamr@2
    35
    /**
williamr@2
    36
     * Specifies the type of the filter
williamr@2
    37
     */
williamr@2
    38
    enum TFilterType
williamr@2
    39
        {
williamr@2
    40
        /**
williamr@2
    41
         * Filter based on the trigger entry's attribute value.
williamr@2
    42
         */
williamr@2
    43
        EFilterByAttribute = 1,
williamr@2
    44
        /**
williamr@2
    45
         * Filter based on the geographical area.
williamr@2
    46
         */
williamr@2
    47
        EFilterByArea = 2,
williamr@2
    48
        /**
williamr@2
    49
         * Composite filter.
williamr@2
    50
         */
williamr@2
    51
        EFilterComposite = 3
williamr@2
    52
        };
williamr@2
    53
williamr@2
    54
    /**
williamr@2
    55
     * Returns the type of filter.
williamr@2
    56
     *
williamr@2
    57
     * @return The type of the filter.
williamr@2
    58
     */
williamr@2
    59
    virtual TFilterType Type() const = 0;
williamr@2
    60
williamr@2
    61
    /**
williamr@2
    62
     * Destructor.
williamr@2
    63
     */
williamr@2
    64
    IMPORT_C virtual ~CLbtTriggerFilterBase();
williamr@2
    65
    
williamr@2
    66
    
williamr@2
    67
    /**
williamr@2
    68
     * Internalizes the trigger condition object's details and attributes 
williamr@2
    69
     * from stream.
williamr@2
    70
     *
williamr@2
    71
     * The presence of this function means that the standard templated 
williamr@2
    72
     * operator>>() ( defined in s32strm.h ) is available to internalize objects 
williamr@2
    73
     * of this class.
williamr@2
    74
     *
williamr@2
    75
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
    76
     */
williamr@2
    77
    IMPORT_C void InternalizeL( RReadStream& aStream );
williamr@2
    78
    
williamr@2
    79
    /**
williamr@2
    80
     * Externalizes the trigger condition object's details and attributes
williamr@2
    81
     * to stream.
williamr@2
    82
     *
williamr@2
    83
     * The presence of this function means that the standard templated 
williamr@2
    84
     * operator<<() ( defined in s32strm.h ) is available to externalize objects 
williamr@2
    85
     * of this class.
williamr@2
    86
     *
williamr@2
    87
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
    88
     */
williamr@2
    89
    IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
williamr@2
    90
    
williamr@2
    91
williamr@2
    92
protected:    
williamr@2
    93
    /**
williamr@2
    94
     * Constructor.
williamr@2
    95
     */
williamr@2
    96
    CLbtTriggerFilterBase();
williamr@2
    97
    
williamr@2
    98
    /**
williamr@2
    99
     * Internalize method that subclass must implement.
williamr@2
   100
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
   101
     */
williamr@2
   102
    virtual void DoInternalizeL( RReadStream& aStream ) = 0;
williamr@2
   103
    
williamr@2
   104
    /**
williamr@2
   105
     * Externalize method that subclass must implement.
williamr@2
   106
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
   107
     */
williamr@2
   108
    virtual void DoExternalizeL( RWriteStream& aStream ) const = 0;
williamr@2
   109
    
williamr@2
   110
private:
williamr@2
   111
    /**
williamr@2
   112
     * By default, prohibit copy constructor
williamr@2
   113
     */
williamr@2
   114
    CLbtTriggerFilterBase( const CLbtTriggerFilterBase& );
williamr@2
   115
    
williamr@2
   116
    /**
williamr@2
   117
     * Prohibit assigment operator
williamr@2
   118
     */
williamr@2
   119
    CLbtTriggerFilterBase& operator= ( const CLbtTriggerFilterBase& );
williamr@2
   120
williamr@2
   121
    };
williamr@2
   122
williamr@2
   123
#endif // LBTTRIGGERFILTERBASE_H