epoc32/include/mw/lbttriggerconditionbase.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:  Abstract base class for trigger condition classes.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
williamr@2
    21
#ifndef LBTTRIGGERCONDITIONBASE_H
williamr@2
    22
#define LBTTRIGGERCONDITIONBASE_H
williamr@2
    23
williamr@2
    24
#include <e32base.h>
williamr@2
    25
#include <s32strm.h>
williamr@2
    26
williamr@2
    27
/**
williamr@2
    28
 * Abstract base class for trigger condition classes.
williamr@2
    29
 * 
williamr@2
    30
 * This class is not meant to be derived nor instantiated by client application.
williamr@2
    31
 * It defines methods that concrete trigger condition class must implement.
williamr@2
    32
 *
williamr@2
    33
 * @lib lbt.lib
williamr@2
    34
 * @since S60 5.1
williamr@2
    35
 */
williamr@2
    36
class CLbtTriggerConditionBase : public CBase
williamr@2
    37
    {
williamr@2
    38
public:
williamr@2
    39
    /**
williamr@2
    40
     * Enumeration for trigger condition types.
williamr@2
    41
     */
williamr@2
    42
    enum TType
williamr@2
    43
        {
williamr@2
    44
        /** 
williamr@2
    45
         * Trigger condition based on geographical area and movement of 
williamr@2
    46
         * the terminal. A trigger is fired when the 
williamr@2
    47
         * terminal enters or leaves the specified trigger area.
williamr@2
    48
         */
williamr@2
    49
        ETriggerConditionArea = 1
williamr@2
    50
        };
williamr@2
    51
        
williamr@2
    52
    /**
williamr@2
    53
     * Destructor
williamr@2
    54
     */
williamr@2
    55
    virtual ~CLbtTriggerConditionBase();
williamr@2
    56
    
williamr@2
    57
    /**
williamr@2
    58
     * Gets the type of trigger condition class.
williamr@2
    59
     * @return The type of trigger condition class.
williamr@2
    60
     */
williamr@2
    61
    virtual TType Type() const = 0;
williamr@2
    62
    
williamr@2
    63
    /**
williamr@2
    64
     * Internalizes the trigger condition object's details and attributes 
williamr@2
    65
     * from stream.
williamr@2
    66
     *
williamr@2
    67
     * The presence of this function means that the standard templated 
williamr@2
    68
     * operator>>() ( defined in s32strm.h ) is available to internalize objects 
williamr@2
    69
     * of this class.
williamr@2
    70
     *
williamr@2
    71
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
    72
     */
williamr@2
    73
    IMPORT_C void InternalizeL( RReadStream& aStream );
williamr@2
    74
    
williamr@2
    75
    /**
williamr@2
    76
     * Externalizes the trigger condition object's details and attributes
williamr@2
    77
     * to stream.
williamr@2
    78
     *
williamr@2
    79
     * The presence of this function means that the standard templated 
williamr@2
    80
     * operator<<() ( defined in s32strm.h ) is available to externalize objects 
williamr@2
    81
     * of this class.
williamr@2
    82
     *
williamr@2
    83
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
    84
     */
williamr@2
    85
    IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
williamr@2
    86
    
williamr@2
    87
protected:
williamr@2
    88
    /**
williamr@2
    89
     * Constructor
williamr@2
    90
     */
williamr@2
    91
    CLbtTriggerConditionBase();
williamr@2
    92
    
williamr@2
    93
    /**
williamr@2
    94
     * Internalize method that subclass must implement.
williamr@2
    95
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
    96
     */
williamr@2
    97
    virtual void DoInternalizeL( RReadStream& aStream ) = 0;
williamr@2
    98
    
williamr@2
    99
    /**
williamr@2
   100
     * Externalize method that subclass must implement.
williamr@2
   101
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
   102
     */
williamr@2
   103
    virtual void DoExternalizeL( RWriteStream& aStream ) const = 0;
williamr@2
   104
williamr@2
   105
private:
williamr@2
   106
    /**
williamr@2
   107
     * By default, prohibit copy constructor
williamr@2
   108
     */
williamr@2
   109
    CLbtTriggerConditionBase( const CLbtTriggerConditionBase& );
williamr@2
   110
    
williamr@2
   111
    /**
williamr@2
   112
     * Prohibit assigment operator
williamr@2
   113
     */
williamr@2
   114
    CLbtTriggerConditionBase& operator= ( const CLbtTriggerConditionBase& );
williamr@2
   115
williamr@2
   116
    };
williamr@2
   117
    
williamr@2
   118
 
williamr@2
   119
#endif // LBTTRIGGERCONDITIONBASE_H