contentstorage/casoftwareregistry/s60/inc/cauninstallobserver.h
changeset 109 e0aa398e6810
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
       
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  *  Description : Content Arsenal client session
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CAUINSTALLOBSERVER_H_
       
    19 #define CAUINSTALLOBSERVER_H_
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 /**
       
    24  *  IDataObserver
       
    25  *
       
    26  */
       
    27 class IUninstallObserver
       
    28 {
       
    29 public:
       
    30     /**
       
    31      * Method invoked when entry is changed.
       
    32      * @param entryId entry id.
       
    33      * @param changeType change type.
       
    34      */
       
    35     virtual void progressChange(TInt componentId,
       
    36                               TInt valueOfProgress) const = 0;
       
    37 
       
    38 };
       
    39 
       
    40 
       
    41 
       
    42 class CaUninstallObserver: public QObject, public IUninstallObserver
       
    43 {
       
    44     Q_OBJECT
       
    45 public:
       
    46     /**
       
    47      * Constructor.
       
    48      * @param parent pointer to parent. Defaults to NULL.
       
    49      */
       
    50     CaUninstallObserver(QObject *parent = 0);
       
    51 
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     ~CaUninstallObserver();
       
    56     
       
    57     /**
       
    58      * Method invoked when entry is changed.
       
    59      * @param entryId entry id.
       
    60      * @param changeType change type.
       
    61      */
       
    62     void progressChange(TInt componentId,
       
    63                               TInt valueOfProgress) const;
       
    64 
       
    65 
       
    66 signals:
       
    67 
       
    68     void signalprogressChange(int componentId, int valueOfProgress) const;
       
    69 };
       
    70 
       
    71 
       
    72 #endif /* CAUINSTALLOBSERVER_H_ */