homescreensrv_plat/contentstorage_api/cauninstallnotifier.h
changeset 107 b34d53f6acdf
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
       
     1 /*
       
     2  * Copyright (c) 2009 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: canotifier.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CAUINSTALLNOTIFIER_H
       
    19 #define CAUINSTALLNOTIFIER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QSharedPointer>
       
    23 
       
    24 #include "caclient_global.h"
       
    25 class CaUninstallNotifierPrivate;
       
    26 
       
    27 class CaUninstallNotifier: public QObject
       
    28 {
       
    29 Q_OBJECT
       
    30 
       
    31 public:
       
    32 
       
    33     static CaUninstallNotifier* notifier();
       
    34 
       
    35 private: 
       
    36     
       
    37     explicit CaUninstallNotifier(CaUninstallNotifierPrivate *const notifierPrivate);
       
    38 
       
    39     virtual ~CaUninstallNotifier();
       
    40 
       
    41 signals:
       
    42 
       
    43     /*!
       
    44         A signal emited when the entry is changed.
       
    45         \param entryId entry id.
       
    46         \param changeType the type of the change.
       
    47     */
       
    48     void progressChange(int componentId, int progressValue);
       
    49 
       
    50 private:
       
    51 
       
    52     CaUninstallNotifierPrivate * const m_d;
       
    53     
       
    54     static QSharedPointer<CaUninstallNotifier> mInstance;
       
    55     
       
    56     Q_DISABLE_COPY(CaUninstallNotifier)
       
    57 
       
    58     friend class CaUninstallNotifierPrivate;
       
    59     
       
    60     friend class QtSharedPointer::ExternalRefCount<CaUninstallNotifier>;
       
    61 };
       
    62 
       
    63 
       
    64 #endif // CAUINSTALLNOTIFIER_H