contentstorage/casoftwareregistry/s60/src/cauninstallnotifier_p.cpp
changeset 107 b34d53f6acdf
child 127 7b66bc3c6dc9
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.cpp
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cauninstallnotifier.h"
       
    19 #include "cauninstallnotifier_p.h"
       
    20 #include "caprogresscanner.h"
       
    21 #include "cauninstallobserver.h"
       
    22 #include "casoftwareregistry.h"
       
    23 
       
    24 /*!
       
    25  Constructor.
       
    26  \param notifierFilter descrbies entries to observe.
       
    27  */
       
    28 CaUninstallNotifierPrivate::CaUninstallNotifierPrivate() :
       
    29     mUninstallObserver(NULL), mProgressScanner(NULL),
       
    30     mCaSoftwareRegistry(CaSoftwareRegistry::create()),
       
    31     m_q(NULL)
       
    32 {
       
    33     mUninstallObserver = new CaUninstallObserver();
       
    34     TRAP_IGNORE(mProgressScanner = CCaProgresScanner::NewL(mUninstallObserver));
       
    35 }
       
    36 
       
    37 /*!
       
    38  Destructor.
       
    39  */
       
    40 CaUninstallNotifierPrivate::~CaUninstallNotifierPrivate()
       
    41 {
       
    42     delete mProgressScanner;
       
    43     delete mUninstallObserver;
       
    44 }
       
    45 
       
    46 void CaUninstallNotifierPrivate::makeConnect()
       
    47 {
       
    48     connect(mUninstallObserver, SIGNAL(signalprogressChange(int, int)), 
       
    49             m_q, SIGNAL(progressChange(int, int)));
       
    50 }