activityfw/storage/server/inc/afapplicationscollection.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:
       
    15 *
       
    16 */
       
    17 #ifndef AFAPPLICATIONSCOLLECTION_H
       
    18 #define AFAPPLICATIONSCOLLECTION_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include "afapplicationsobserver.h"
       
    22 #include "afapplicationsregistry.h"
       
    23 
       
    24 
       
    25 class CAfApplicationsCollection: public CBase,
       
    26                                  public MAfApplicationsObserver,
       
    27                                  public MAfApplicationsRegistry
       
    28 {
       
    29 public:
       
    30     static CAfApplicationsCollection* NewL(RApaLsSession& serviceProvider, MAfApplicationsObserver* observer =0);
       
    31     ~CAfApplicationsCollection();
       
    32     void applicationsChanged();
       
    33     TArray<TUid> removedApplications()const;
       
    34     void setObserver(MAfApplicationsObserver& oserver);
       
    35 private:
       
    36     CAfApplicationsCollection(RApaLsSession& serviceProvider, MAfApplicationsObserver* observer);
       
    37     void collectsApplicationsInfoL();
       
    38     
       
    39 private:
       
    40     RApaLsSession& mServiceProvider;
       
    41     MAfApplicationsObserver* mObserver;
       
    42     RArray<TUid> mDeinstalledApplications;
       
    43 };
       
    44 
       
    45 #endif // AFAPPLICATIONSCOLLECTION_H