contentstorage/srvinc/caprogressnotifier.h
author hgs
Thu, 24 Jun 2010 16:18:29 +0300
changeset 99 7aaf39b772ac
parent 98 d2f833ab7940
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
98
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
 * All rights reserved.
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
 *
hgs
parents:
diff changeset
     9
 * Initial Contributors:
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
 *
hgs
parents:
diff changeset
    12
 * Contributors:
hgs
parents:
diff changeset
    13
 *
hgs
parents:
diff changeset
    14
 * Description:  ?Description
hgs
parents:
diff changeset
    15
 *
hgs
parents:
diff changeset
    16
 */
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef CAPROGRESSNOTIFIER_H
hgs
parents:
diff changeset
    19
#define CAPROGRESSNOTIFIER_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include <e32base.h>
hgs
parents:
diff changeset
    22
#include <usif/sif/sifnotification.h>
99
hgs
parents: 98
diff changeset
    23
#include <usif/usifcommon.h> 
hgs
parents: 98
diff changeset
    24
98
hgs
parents:
diff changeset
    25
#include "castorage_global.h"
hgs
parents:
diff changeset
    26
using namespace Usif; 
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
class CCaStorageProxy;
99
hgs
parents: 98
diff changeset
    29
class CCaInnerEntry;
98
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
/**
hgs
parents:
diff changeset
    32
 *  Uninstall Progress notifier.
hgs
parents:
diff changeset
    33
 *
hgs
parents:
diff changeset
    34
 *  @since S60 v5.0
hgs
parents:
diff changeset
    35
 */
hgs
parents:
diff changeset
    36
NONSHARABLE_CLASS( CCaProgressNotifier ) : public CBase, 
99
hgs
parents: 98
diff changeset
    37
        public MSifOperationsHandler
98
hgs
parents:
diff changeset
    38
    {
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
public:
hgs
parents:
diff changeset
    41
    /**
hgs
parents:
diff changeset
    42
     * Creates an instance of CCaProgressNotifier.
hgs
parents:
diff changeset
    43
     * @param aCaStorageProxy Reference to storage.
hgs
parents:
diff changeset
    44
     */
hgs
parents:
diff changeset
    45
IMPORT_C static CCaProgressNotifier* NewL( CCaStorageProxy& aCaStorageProxy);
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
    /**
hgs
parents:
diff changeset
    48
     * Destructor.
hgs
parents:
diff changeset
    49
     */
hgs
parents:
diff changeset
    50
    virtual ~CCaProgressNotifier();
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
private:
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
    /**
hgs
parents:
diff changeset
    55
     * Constructor.
hgs
parents:
diff changeset
    56
     */
99
hgs
parents: 98
diff changeset
    57
    CCaProgressNotifier( CCaStorageProxy& aCaStorageProxy );
98
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
    /**
hgs
parents:
diff changeset
    60
     * Symbian 2nd phase constructor.
hgs
parents:
diff changeset
    61
     * @param aCaStorageProxy Reference to storage.
hgs
parents:
diff changeset
    62
     */
99
hgs
parents: 98
diff changeset
    63
    void ConstructL( );
hgs
parents: 98
diff changeset
    64
    
hgs
parents: 98
diff changeset
    65
    void UpdateProgressL( const CSifOperationProgressData& aProgressData );
hgs
parents: 98
diff changeset
    66
    void EndOperationL(TInt aError);
hgs
parents: 98
diff changeset
    67
    TComponentId ComponentIdL(const TDesC& aGlobalComponentId, const TDesC& aSwType);
hgs
parents: 98
diff changeset
    68
    void MarkEntrysForUnistallL(TUint aKey, TComponentId aComponentId);
98
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
public:
hgs
parents:
diff changeset
    71
    /**
hgs
parents:
diff changeset
    72
     * From MSifOperationsHandler
hgs
parents:
diff changeset
    73
     */
hgs
parents:
diff changeset
    74
    void StartOperationHandler(TUint aKey, const CSifOperationStartData& aStartData);
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
    /**
hgs
parents:
diff changeset
    77
     * From MSifOperationsHandler
hgs
parents:
diff changeset
    78
     */
hgs
parents:
diff changeset
    79
    void EndOperationHandler(const CSifOperationEndData& aEndData);
hgs
parents:
diff changeset
    80
hgs
parents:
diff changeset
    81
    /**
hgs
parents:
diff changeset
    82
     * From MSifOperationsHandler
hgs
parents:
diff changeset
    83
     */
hgs
parents:
diff changeset
    84
    void ProgressOperationHandler(const CSifOperationProgressData& aProgressData);
hgs
parents:
diff changeset
    85
    
hgs
parents:
diff changeset
    86
private:
hgs
parents:
diff changeset
    87
hgs
parents:
diff changeset
    88
    /**
hgs
parents:
diff changeset
    89
     * USIF notifier
hgs
parents:
diff changeset
    90
     * Own.
hgs
parents:
diff changeset
    91
     * 
hgs
parents:
diff changeset
    92
     * Commented out since USIF notifications do not
hgs
parents:
diff changeset
    93
     * work on MCL wk20
hgs
parents:
diff changeset
    94
     */
99
hgs
parents: 98
diff changeset
    95
    CSifOperationsNotifier* iNotifier;
98
hgs
parents:
diff changeset
    96
    
hgs
parents:
diff changeset
    97
    /**
hgs
parents:
diff changeset
    98
     * Not Own.
hgs
parents:
diff changeset
    99
     * Reference to the Storage Proxy.
hgs
parents:
diff changeset
   100
     */
99
hgs
parents: 98
diff changeset
   101
    CCaStorageProxy& iStorageProxy;
98
hgs
parents:
diff changeset
   102
    
99
hgs
parents: 98
diff changeset
   103
    RPointerArray<CCaInnerEntry> iResultArrayItems;
hgs
parents: 98
diff changeset
   104
    
hgs
parents: 98
diff changeset
   105
    TUint iKey;
98
hgs
parents:
diff changeset
   106
    
hgs
parents:
diff changeset
   107
    };
hgs
parents:
diff changeset
   108
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
#endif /* CAPROGRESSNOTIFIER_H */
hgs
parents:
diff changeset
   111
hgs
parents:
diff changeset
   112
// End of File
hgs
parents:
diff changeset
   113