inc/ccontentmap.h
author kashif.sayed
Fri, 26 Mar 2010 03:06:02 +0530
branchv5backport
changeset 30 f9f9f96b1873
child 54 666a2952b5b3
permissions -rw-r--r--
user: kashif.sayed added contentcontrolsrv/.cproject added contentcontrolsrv/.project added contentcontrolsrv/group/ABLD.BAT added contentpublishingsrv/.cproject added contentpublishingsrv/.project added contentpublishingsrv/contentharvester/.cproject added contentpublishingsrv/contentharvester/.project added contentpublishingsrv/contentharvester/contentharvesterclient/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterserver/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterswiplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/factorysettingsplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/group/ABLD.BAT added contentpublishingsrv/group/ABLD.BAT added dependencies/S3libs/cpswrapper.lib added dependencies/S3libs/hscontentcontrol.lib added dependencies/S3libs/hspswrapper.lib added group/ABLD.BAT added homescreenpluginsrv/group/ABLD.BAT added homescreensrv_plat/group/ABLD.BAT added idlefw/group/ABLD.BAT added inc/ccontentmap.h added inc/cpdebug.h added inc/cpglobals.h added inc/cpliwmap.h added inc/cpluginvalidator.h added inc/cpserverdef.h added inc/cpublisherregistrymap.h added inc/mcssathandler.h added menucontentsrv/group/ABLD.BAT added xcfw/group/ABLD.BAT changed dependencies/S3libs/bld.inf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     1
/*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     8
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    11
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    12
* Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    13
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    14
* Description:  CContentMap - class used in Content Publisher
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    15
 *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    16
*/
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    17
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    18
#ifndef C_CONTENTMAP_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    19
#define C_CONTENTMAP_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
#include "cpliwmap.h"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
// CLASS DECLARATION
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
 *  Map which contains ids and serialized data stored by 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
 * 	Content Publisher
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
 *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
 *  @lib cputils.dll
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
 *  @since S60 v5.0
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
 */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
NONSHARABLE_CLASS( CContentMap ): public CCPLiwMap
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
public:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
     * Two-phased constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
    IMPORT_C static CContentMap* NewL( );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    39
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    40
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    41
     * Two-phased constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
    IMPORT_C static CContentMap* NewLC( );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
     * Destructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
    virtual ~CContentMap();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    49
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    50
        
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    51
private:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
     * Adds to database current content
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
     * @return id of added entry
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
	TInt32 AddL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
            CLiwDefaultList* aNotificationList = NULL ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
     * Fetches entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
     * @param aList target list for enntries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
     * @param aItemsToDelete ids of entries for removal - 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
     *        they were found to be expired
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
     * @return number of fetched entries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
    TUint GetListL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
            CLiwGenericParamList* aList,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
            RArray<TInt32>& aItemsToDelete ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
     * Removes entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
    void RemoveL( RSqlDatabase aSqlDb ,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
            CLiwDefaultList* aNotificationList = 0 ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    90
     * Saves results from query to SQLite Server
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    91
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    92
     * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    93
     * @param aList target list for enntries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    94
     * @param aItemsToDelete ids of entries for removal - 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    95
     *        they were found to be expired
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    96
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    97
    void SaveQueryResultsL( RSqlStatement& aStmt ,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    98
            CLiwGenericParamList& aList,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    99
            RArray<TInt32>& aItemsToDelete ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   100
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   101
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   102
     * Prepares SQL query for Add operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   103
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   104
     * @param aSqlDb handle to database  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   105
     * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   106
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   107
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   108
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   109
    void PrepareStmtforAddL(RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   110
            RSqlStatement& aStmt ,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   111
            const TDesC& aQuery ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   112
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   113
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   114
     * Prepares SQL query for Update operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   115
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   116
     * @param aSqlDb handle to database  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   117
     * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   118
     * @param aId id of entry to update
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   119
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   120
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   121
    void PrepareStmtforUpdateL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   122
            RSqlStatement& aStmt,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   123
            TInt32 aId ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   124
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   125
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   126
     * Updates entry in database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   127
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   128
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   129
     * @param aId id entry to update
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   130
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   131
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   132
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   133
    void UpdateL( RSqlDatabase aSqlDb, TInt32 aId,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   134
            CLiwDefaultList* aNotificationList ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   135
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   136
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   137
     * Performs actuall add operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   138
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   139
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   140
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   141
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   142
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   143
     * @return id of added entry
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   144
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   145
    TInt32 AddToDbL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   146
            CLiwDefaultList* aNotificationList ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   147
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   148
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   149
     * Appends sorting criteria as strings to SQL query according to aSort
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   150
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   151
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   152
     * @param aSort sort filter as TInt
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   153
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   154
    void AppendSortL( RBuf& aQuery, const TCPSortOrder& aSort ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   155
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   156
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   157
     * Checks expiration time
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   158
     * @param aExpirationTime time to checking with current time
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   159
     * @return true if aExpirationTime is correct
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   160
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   161
    TBool IsOutdated( const TTime aExpirationTime ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   162
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   163
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   164
     * Check if data map is set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   165
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   166
     * @return ETrue if ContentType was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   167
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   168
    void IsDataMapL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   169
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   170
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   171
     * Gets expiration time from own data
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   172
     * @param aResult expiration date
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   173
     * @return ETrue if expiration date is find, EFalse if not 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   174
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   175
    TBool GetExpirationDateL( TTime& aResult ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   176
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   177
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   178
     * Check if IDs are valid for Delete operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   179
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   180
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   181
    void IsValidForDeleteL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   182
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   183
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   184
     * Check if IDs are valid for GetList operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   185
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   186
    void IsValidForGetListL() const ;    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   187
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   188
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   189
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   190
     * @return ETrue if supported, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   191
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   192
    TBool ActivateActionSupport( ) const;      
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   193
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   194
	/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   195
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   196
     * @return ETrue if activate flag is set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   197
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   198
	TBool GetActivateInfo( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   199
	
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   200
	                                              
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   201
private:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   202
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   203
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   204
     * C++ default constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   205
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   206
    CContentMap();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   207
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   208
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   209
     * Perform the second phase construction of a CContentMap object.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   210
     */        
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   211
    void ConstructL();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   212
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   213
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   214
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   215
#endif // C_CONTENTMAP_H