epoc32/include/mw/lbttriggerinfo.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:  Data class for trigger information
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef LBTTRIGGERINFO_H
williamr@2
    20
#define LBTTRIGGERINFO_H
williamr@2
    21
williamr@2
    22
#include <e32base.h>
williamr@2
    23
#include <lbtcommon.h>
williamr@2
    24
#include <s32strm.h>
williamr@2
    25
williamr@2
    26
class CLbtTriggerEntry;
williamr@2
    27
struct TLbtTriggerDynamicInfo;
williamr@2
    28
williamr@2
    29
williamr@2
    30
/**
williamr@2
    31
 * Data class for trigger information. The trigger information contains trigger 
williamr@2
    32
 * entry and trigger dynamic information.
williamr@2
    33
 *
williamr@2
    34
 * @lib lbt.lib
williamr@2
    35
 *
williamr@2
    36
 * @since S60 5.1
williamr@2
    37
 */
williamr@2
    38
class CLbtTriggerInfo : public CBase
williamr@2
    39
    {
williamr@2
    40
public:
williamr@2
    41
    /**
williamr@2
    42
     * Constructs a new instance of trigger information object.
williamr@2
    43
     *
williamr@2
    44
     * @return The new instance of trigger information object.
williamr@2
    45
     */
williamr@2
    46
    IMPORT_C static CLbtTriggerInfo* NewL();
williamr@2
    47
williamr@2
    48
    /**
williamr@2
    49
     * Constructs a new instance of trigger information object
williamr@2
    50
     * and pushes it onto cleanup stack.
williamr@2
    51
     *
williamr@2
    52
     * @return The new instance of trigger information object.
williamr@2
    53
     */
williamr@2
    54
    IMPORT_C static CLbtTriggerInfo* NewLC();
williamr@2
    55
williamr@2
    56
    /**
williamr@2
    57
     * Constructs a new instance of trigger information object.
williamr@2
    58
     *
williamr@2
    59
     * @param[in] aEntry The pointer to the trigger entry. 
williamr@2
    60
     * Ownership is transferred to this object.
williamr@2
    61
     * @param[in] aDynInfo The pointer to the trigger dynamic 
williamr@2
    62
     * information object. Ownership is transferred to this object.
williamr@2
    63
     * @return The new instance of trigger information object.
williamr@2
    64
     */
williamr@2
    65
    IMPORT_C static CLbtTriggerInfo* NewL( 
williamr@2
    66
        CLbtTriggerEntry* aEntry,
williamr@2
    67
        TLbtTriggerDynamicInfo* aDynInfo );
williamr@2
    68
williamr@2
    69
    /**
williamr@2
    70
     * Destructor
williamr@2
    71
     */
williamr@2
    72
    IMPORT_C virtual ~CLbtTriggerInfo();
williamr@2
    73
williamr@2
    74
    /**
williamr@2
    75
     * Gets trigger entry object.
williamr@2
    76
     *
williamr@2
    77
     * @return Pointer to the trigger entry object. Ownership is
williamr@2
    78
     * not transferred to the client.
williamr@2
    79
     */
williamr@2
    80
    IMPORT_C CLbtTriggerEntry* TriggerEntry();
williamr@2
    81
williamr@2
    82
    /**
williamr@2
    83
     * Sets trigger entry.
williamr@2
    84
     *
williamr@2
    85
     * @param[in] aEntry The trigger entry object. Ownership is 
williamr@2
    86
     * transferred to this object.
williamr@2
    87
     */
williamr@2
    88
    IMPORT_C void SetTriggerEntry( CLbtTriggerEntry* aEntry );
williamr@2
    89
williamr@2
    90
    /**
williamr@2
    91
     * Gets trigger dynamic information object.
williamr@2
    92
     *
williamr@2
    93
     * @return Pointer to the trigger dynamic information object.
williamr@2
    94
     * Ownership is not transferred to the client.
williamr@2
    95
     */
williamr@2
    96
    IMPORT_C TLbtTriggerDynamicInfo* DynInfo();
williamr@2
    97
williamr@2
    98
    /**
williamr@2
    99
     * Sets trigger dynamic information object.
williamr@2
   100
     *
williamr@2
   101
     * @param[in] aDynInfo Pointer to the trigger dynamic 
williamr@2
   102
     * information object. Ownership is transferred to this object.
williamr@2
   103
     */
williamr@2
   104
    IMPORT_C void SetDynInfo( TLbtTriggerDynamicInfo* aDynInfo );
williamr@2
   105
    
williamr@2
   106
    
williamr@2
   107
	/**
williamr@2
   108
     * Internalizes the trigger object's details and attributes 
williamr@2
   109
     * from stream.
williamr@2
   110
     *
williamr@2
   111
     * The presence of this function means that the standard template 
williamr@2
   112
     * operator>>() ( defined in s32strm.h ) is available to internalize objects 
williamr@2
   113
     * of this class.
williamr@2
   114
     *
williamr@2
   115
     * @param[in] aStream Stream from which the object should be internalized.
williamr@2
   116
     */
williamr@2
   117
    IMPORT_C void InternalizeL( RReadStream& aStream );
williamr@2
   118
    
williamr@2
   119
    /**
williamr@2
   120
     * Externalizes the trigger object's details and attributes
williamr@2
   121
     * to stream.
williamr@2
   122
     *
williamr@2
   123
     * The presence of this function means that the standard template 
williamr@2
   124
     * operator<<() ( defined in s32strm.h ) is available to externalize objects 
williamr@2
   125
     * of this class.
williamr@2
   126
     *
williamr@2
   127
     * @param[in] aStream Stream to which the object should be externalized.
williamr@2
   128
     */
williamr@2
   129
    IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
williamr@2
   130
williamr@2
   131
protected:
williamr@2
   132
    /**
williamr@2
   133
     * Default constructor.
williamr@2
   134
     */
williamr@2
   135
    CLbtTriggerInfo();
williamr@2
   136
williamr@2
   137
private:    
williamr@2
   138
    /**
williamr@2
   139
     * Symbian 2nd phase constructor.
williamr@2
   140
     */
williamr@2
   141
    void ConstructL(CLbtTriggerEntry* aEntry,
williamr@2
   142
        TLbtTriggerDynamicInfo* aDynInfo);
williamr@2
   143
    
williamr@2
   144
    /**
williamr@2
   145
     * Symbian 2nd phase constructor.
williamr@2
   146
     */    
williamr@2
   147
    void ConstructL();    
williamr@2
   148
	
williamr@2
   149
	/**
williamr@2
   150
     * By default, prohibit copy constructor
williamr@2
   151
     */
williamr@2
   152
    CLbtTriggerInfo( const CLbtTriggerInfo& );
williamr@2
   153
    
williamr@2
   154
    /**
williamr@2
   155
     * Prohibit assigment operator
williamr@2
   156
     */
williamr@2
   157
    CLbtTriggerInfo& operator= ( const CLbtTriggerInfo& );
williamr@2
   158
williamr@2
   159
williamr@2
   160
private:// data
williamr@2
   161
    /**
williamr@2
   162
     * Trigger entry
williamr@2
   163
     */
williamr@2
   164
    CLbtTriggerEntry* iEntry;
williamr@2
   165
williamr@2
   166
    /**
williamr@2
   167
     * Trigger dynamic info
williamr@2
   168
     */
williamr@2
   169
    TLbtTriggerDynamicInfo* iDynInfo;
williamr@2
   170
    };
williamr@2
   171
williamr@2
   172
#endif // LBTTRIGGERINFO_H