inc/cpliwmap.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:   CCPLiwMap - 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_CPLIWIDSMAP_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    19
#define C_CPLIWIDSMAP_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
#include <liwvariant.h>
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
#include <sqldb.h>
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
#include "cpglobals.h"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
class RDesReadStream;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
class CCPSecurityPolicy;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
// CLASS DECLARATION
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
 *  Base Map class for Publisher Registry and Content
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
 *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
 *  @lib cputils.dll
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
 *  @since S60 v5.0
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
 */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
class CCPLiwMap : public CLiwMap
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
protected:
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
     * Enum defining the properties of filter.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
    enum TCPProperties
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
        {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
        EPublisher = 1,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
        EContentType = 2,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
        EContentId = 4,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
        EFlag = 8,
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
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
     * Enum defining the sort ordering.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
	enum TCPSortOrder
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
        {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
        ECPRecent = 1, // 0001
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
        ECPPublisher  = 2, // 0010
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
        ECPContent = 4, // 0100 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
        ECPContentId = 8 // 1000 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
        };   
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
public:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
    friend class CCpStorageEngine;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
     * Two-phased constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
    IMPORT_C static CCPLiwMap* NewL( RDesReadStream& aStream );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
     * Two-phased constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
    IMPORT_C static CCPLiwMap* NewL( const CLiwGenericParamList& aList );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
     * Used by client to serialize this object 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
     * @return object serialized to binary
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
    IMPORT_C HBufC8* PackForServerLC() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
     * Reset map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
    IMPORT_C void Reset( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
     * Leaves when Add data operation is not possible due
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    90
     * to missing of some parameter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    91
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    92
    virtual void IsValidForAddL( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    93
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    94
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    95
     * Leaves when Execute Action operation is not possible due
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    96
     * to missing of some parameter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    97
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    98
    IMPORT_C void IsValidForActionL( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    99
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   100
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   101
     * Leaves when RequestNotification operation is not possible due
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   102
     * to missing of some parameter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   103
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   104
    IMPORT_C void IsValidForNotificationL( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   105
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   106
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   107
     * Fetches value for property(key) from internal map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   108
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   109
     * @param aProperty name of the property ( key ) 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   110
     * @param aResult target descriptor for fetching operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   111
     * @return ETrue is property found or EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   112
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   113
    IMPORT_C TBool GetPropertyL( const TDesC8& aProperty,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   114
             RBuf& aResult ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   115
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   116
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   117
     * Fetches value for property(key) from internal map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   118
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   119
     * @param aProperty name of the property ( key ) 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   120
     * @param aResult target binary for fetching operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   121
     * @return ETrue is property found or EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   122
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   123
    IMPORT_C TBool GetPropertyL( const TDesC8& aProperty,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   124
            RBuf8& aResult ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   125
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   126
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   127
     * Fetches value for property(key) from internal map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   128
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   129
     * @param aProperty name of the property ( key ) 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   130
     * @param aResult target integer for fetching operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   131
     * @return ETrue is property found or EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   132
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   133
    IMPORT_C TBool GetProperty( const TDesC8& aProperty,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   134
    		TInt32& aResult ) 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
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   138
     * Setter for security policy 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   139
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   140
     * @param aPolicy security policy
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   141
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   142
    IMPORT_C void SetSecurityL( const RMessage2& aMessage );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   143
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   144
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   145
     * Destructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   146
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   147
    virtual ~CCPLiwMap();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   148
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   149
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   150
     * Check if IDs are valid for Delete operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   151
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   152
    virtual void IsValidForDeleteL() const =0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   153
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   154
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   155
     * Check if IDs are valid for GetList operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   156
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   157
    virtual void IsValidForGetListL() const =0;    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   158
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   159
	/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   160
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   161
     * @return ETrue if supported, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   162
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   163
	virtual TBool ActivateActionSupport( ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   164
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   165
	/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   166
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   167
     * @return ETrue if activate flag is set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   168
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   169
	virtual TBool GetActivateInfo( ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   170
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   171
	
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   172
public:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   173
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   174
    // from base class CLiwMap
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   175
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   176
     * Inserts a key-value pair element to the map collection. If
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   177
     * the specified key already exists, it will be removed from
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   178
     * the collection and the new key-value pair will be added to the
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   179
     * map.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   180
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   181
     * @param aKey the key to be stored
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   182
     * @param aValue the value associated with the key to be stored
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   183
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   184
    void InsertL( const TDesC8& aKey, const TLiwVariant& aValue );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   185
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   186
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   187
     * Finds a value stored in the map collection based on the key.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   188
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   189
     * @param aKey the key to be searched
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   190
     * @param aFndValue the value associated with the found key
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   191
     * @return false if there is no key stored; true otherwise
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   192
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   193
    TBool FindL( const TDesC8& aKey, TLiwVariant& aValue ) const;
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
     * Returns the number of key-value pair stored in the map collection.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   197
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   198
     * @return the number of key-value pair stored in the map collection
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   199
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   200
    TInt Count() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   201
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   202
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   203
     * Returns the key stored at a specified index. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   204
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   205
     * @param aIndex the index of the key to be found
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   206
     * @param aFndKey the key found at the passed index
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   207
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   208
     * @return true if a key-value entry is found at the passed index;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   209
     * false otherwise
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   210
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   211
    TBool AtL( TInt aIndex, TDes8& aFndKey ) const;
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
     * Removes a key from the map collection.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   215
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   216
     * @param aKey the key to be removed from the map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   217
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   218
    void Remove( const TDesC8& aKey );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   219
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   220
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   221
     * Returns the size of the collection. The size is 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   222
     * calculated based on the total numer of key-value elements
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   223
     * and the size of each pair in the collection
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   224
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   225
     * @return the size of the collection
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   226
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   227
    TInt Size() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   228
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   229
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   230
     * The container managed data values can be serialized to an output
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   231
     * stream. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   232
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   233
     * @param aOutputStream the output stream to which the data will be streamed
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   234
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   235
    void ExternalizeL( RWriteStream& aOutputStream ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   236
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   237
protected:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   238
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   239
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   240
     * Adds to database current content
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   241
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   242
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   243
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   244
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   245
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   246
     * @return id of added entry
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   247
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   248
    virtual TInt32 AddL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   249
        CLiwDefaultList* aNotificationList = 0 ) const= 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   250
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   251
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   252
     * Fetches entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   253
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   254
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   255
     * @param aList target list for enntries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   256
     * @param aItemsToDelete ids of entries for removal - 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   257
     *        they were found to be expired
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   258
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   259
     * @return number of fetched entries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   260
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   261
    virtual TUint GetListL( RSqlDatabase aSqlDb, CLiwGenericParamList* aList,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   262
        RArray<TInt32>& aItemsToDelete ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   263
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   264
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   265
     * Removes entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   266
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   267
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   268
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   269
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   270
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   271
    virtual void RemoveL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   272
        CLiwDefaultList* aNotificationList = 0 ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   273
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   274
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   275
     * Saves results from query to SQLite Server
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   276
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   277
     * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   278
     * @param aList target list for enntries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   279
     * @param aItemsToDelete ids of entries for removal - 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   280
     *        they were found to be expired
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   281
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   282
    virtual void SaveQueryResultsL( RSqlStatement& aStmt,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   283
        CLiwGenericParamList& aList, RArray<TInt32>& aItemsToDelete ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   284
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   285
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   286
     * Updates entry in database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   287
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   288
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   289
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   290
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   291
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   292
    virtual void UpdateL( RSqlDatabase aSqlDb, TInt32 aId,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   293
        CLiwDefaultList* aNotificationList = 0 ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   294
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   295
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   296
     * Performs actuall add operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   297
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   298
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   299
     * @param aNotificationList list of notifications to fill in when 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   300
     *        something was actually changed in dataabse
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   301
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   302
     * @return id of added entry
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   303
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   304
    virtual TInt32 AddToDbL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   305
        CLiwDefaultList* aNotificationList = 0 ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   306
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   307
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   308
     * Checks if operation value is proper
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   309
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   310
     * @param aValue contains operation value
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   311
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   312
    void IsProperOperationL( const TLiwVariant& aValue ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   313
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   314
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   315
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   316
     * Appends GetList filter as strings to SQL query according to aFilter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   317
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   318
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   319
     * @param aFilter as enum
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   320
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   321
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   322
    void AppendGetListFilterL( RBuf& aQuery, TUint& aFilter ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   323
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   324
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   325
     * Appends Remove filter as strings to SQL query according to aFilter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   326
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   327
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   328
     * @param aFilter as enum
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   329
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   330
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   331
    void AppendRemoveFilterL( RBuf& aQuery, TUint& aFilter ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   332
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   333
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   334
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   335
     * Appends filter as strings to SQL query according to aFilter
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   336
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   337
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   338
     * @param aFilter as enum
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   339
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   340
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   341
    virtual void AppendFilterL( RBuf& aQuery, TUint& aFilter ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   342
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   343
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   344
     * Prepares SQL query for Add operation
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   345
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   346
     * @param aSqlDb handle to database  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   347
     * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   348
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   349
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   350
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   351
    virtual void PrepareStmtforAddL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   352
        RSqlStatement& aStmt, const TDesC& aQuery ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   353
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   354
     * Appends sorting criteria as strings to SQL query according to aSort
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   355
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   356
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   357
     * @param aSort sort filter as TInt
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   358
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   359
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   360
    virtual void AppendSortL( RBuf& aQuery, 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   361
        const TCPSortOrder& aSort ) const = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   362
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   363
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   364
      * Fills change info map with proper values
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   365
      *aStmt
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   366
      * @param aStmt handle to SQL statement
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   367
      * @param aChangeInfoMap map that will be filed
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   368
      *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   369
      */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   370
    virtual void FillChangeInfoMapL( RSqlStatement& aStmt, 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   371
			CLiwDefaultMap* aMap ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   372
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   373
protected:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   374
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   375
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   376
     * Sets all parameters according to provided list
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   377
     * @param aItemMap map with parameters
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   378
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   379
    void SetL( const CLiwGenericParamList& aInParamList );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   380
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   381
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   382
     * Check Get properties
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   383
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   384
     * @return logical sum of TCPProperties of the object
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   385
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   386
    TUint GetFilterL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   387
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   388
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   389
     * Check and return sort order
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   390
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   391
     * @return Sort Criteria
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   392
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   393
    TCPSortOrder GetSortL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   394
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   395
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   396
     * Check if Publisher name is set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   397
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   398
     * @return ETrue if Publisher name was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   399
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   400
    TBool IsPublisherNameL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   401
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   402
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   403
     * Check if ContentType is set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   404
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   405
     * @return ETrue if ContentType was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   406
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   407
    TBool IsContentTypeL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   408
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   409
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   410
     * Check if ContentId is set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   411
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   412
     * @return ETrue if ContentId was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   413
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   414
    TBool IsContentIdL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   415
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   416
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   417
     * Check if ActionTrigger is set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   418
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   419
     * @return ETrue if ActionTrigger was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   420
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   421
    TBool IsTriggerL( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   422
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   423
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   424
     * Check if Flag is present
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   425
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   426
     * @return ETrue if ContentId was set, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   427
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   428
    TBool IsFlag( ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   429
    	
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   430
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   431
     * Checks if Id property is present in internal map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   432
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   433
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   434
    TBool IsId() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   435
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   436
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   437
     * Checks if property(key) is present in internal map 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   438
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   439
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   440
    TBool PropertyExists( const TDesC8& aProperty ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   441
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   442
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   443
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   444
     * Fetches entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   445
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   446
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   447
     * @param aQuery aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   448
     * @param aList target list for enntries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   449
     * @param aItemsToDelete ids of entries for removal - 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   450
     *        they were found to be expired
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   451
     *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   452
     * @return number of fetched entries
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   453
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   454
    TUint GetListL( RSqlDatabase aSqlDb, const TDesC& aQuery,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   455
        CLiwGenericParamList* aList, RArray<TInt32>& aItemsToDelete ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   456
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   457
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   458
     * Removes entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   459
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   460
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   461
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   462
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   463
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   464
    void RemoveL( RSqlDatabase aSqlDb, const TDesC& aQuery ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   465
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   466
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   467
     * Fetches Ids (Publisher, ContentType, ContentId) from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   468
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   469
     * @param aId id entry in database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   470
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   471
     * @param aMap map to insert Ids
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   472
     * @param aSqlDb handle to database  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   473
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   474
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   475
    void FetchIdsL( TInt32 aId, const TDesC& aQuery, CLiwDefaultMap* aMap,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   476
        RSqlDatabase aSqlDb ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   477
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   478
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   479
     * Fetches Id from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   480
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   481
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   482
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   483
     * @param aId id entry from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   484
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   485
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   486
    void FetchIdL( RSqlDatabase aSqlDb,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   487
        const TDesC& aQuery, TInt32& aId ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   488
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   489
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   490
     * Gets Ids (Id, Publisher, ContentType, ContentId) 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   491
     *      of removed entries from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   492
     *  
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   493
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   494
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   495
     * @param aList List with ids
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   496
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   497
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   498
    void GetIdsOfRemovedEntriesL( RSqlDatabase aSqlDb, const TDesC& aQuery,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   499
        CLiwDefaultList* aList ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   500
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   501
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   502
     * Saves Ids (Id, Publisher, ContentType, ContentId) from database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   503
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   504
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   505
     * @param aList List with ids
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   506
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   507
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   508
    void SaveQueryResultsIdsL( RSqlStatement& aStmt,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   509
        CLiwDefaultList* aList ) const;    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   510
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   511
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   512
     * Contructs SQL query to select entry
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   513
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   514
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   515
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   516
    void ConstructSelectIdL( RBuf& aQuery ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   517
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   518
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   519
     * Contructs SQL query to select entries for GetList
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   520
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   521
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   522
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   523
    void ConstructGetListSelectL( RBuf& aQuery, TBool aGet = ETrue ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   524
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   525
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   526
     * Contructs SQL query to select entries for Remove
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   527
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   528
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   529
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   530
    void ConstructRemoveSelectL( RBuf& aQuery, TBool aGet = ETrue ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   531
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   532
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   533
     * Binds value to query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   534
     * @param aQuery SQL query
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   535
     * @param aSqlDb handle to database
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   536
     * 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   537
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   538
    void BindValueL( const RBuf& aQuery, RSqlStatement& aStmt ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   539
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   540
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   541
     * Checks if GetList for all items should be done
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   542
     * @param aFilter flag describing which ids are set
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   543
     * @return ETrue if getlist for all items shold be done, EFalse if not
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   544
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   545
    TBool IsGetListAllL( TUint aFilter ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   546
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   547
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   548
     * Removes attributes with "All" value from map
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   549
     * @param aFilter filter bit will be reset if any attribute == "all"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   550
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   551
    void RemoveAllAttributeL( TUint& aFilter ) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   552
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   553
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   554
     * Leaves if publisher, content type od content_id is not descriptor type. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   555
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   556
    void CheckIdentifiersL() const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   557
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   558
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   559
     * Leaves if aParameterIndex is negative-error value 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   560
     * or in case of binding error. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   561
     */    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   562
    void BindTextL(RSqlStatement& aStmt, TInt aParameterIndex,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   563
        const TDesC& aParameterText) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   564
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   565
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   566
     * Leaves if aParameterIndex is negative-error value 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   567
     * or in case of binding error. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   568
     */ 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   569
    void BindBinaryL(RSqlStatement& aStmt, TInt aParameterIndex,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   570
        const TDesC8& aParameterText) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   571
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   572
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   573
     * Leaves if aParameterIndex is negative-error value 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   574
     * or in case of binding error. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   575
     */ 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   576
    void BindInt64L(RSqlStatement& aStmt, TInt aParameterIndex,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   577
        TInt64 aParameterValue) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   578
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   579
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   580
     * Leaves if aParameterIndex is negative-error value 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   581
     * or in case of binding error. 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   582
     */ 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   583
    void BindIntL(RSqlStatement& aStmt, TInt aParameterIndex,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   584
        TInt aParameterValue) const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   585
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   586
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   587
     * Leaves if column index return value is negative.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   588
     * @return result of RSqlStatement::ColumnIndex
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   589
     */ 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   590
    TInt ColumnIndexL( RSqlStatement& aStmt, const TDesC& aColumnName )	const;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   591
protected:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   592
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   593
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   594
     * C++ default constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   595
     */     
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   596
    CCPLiwMap();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   597
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   598
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   599
     * Perform the second phase construction of a CCPLiwMap object.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   600
     */       
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   601
    void ConstructL();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   602
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   603
protected:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   604
    // data
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   605
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   606
    /*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   607
     * The underlying generic parameter list
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   608
     * Own.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   609
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   610
    CLiwGenericParamList* iMap;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   611
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   612
    /*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   613
     * Class used for security 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   614
     *Own.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   615
     */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   616
    const CCPSecurityPolicy* iPolicy;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   617
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   618
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   619
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   620
#endif // C_CPLIWIDSMAP_H