activityfw/storage/client/inc/afstorageclient.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:30:51 +0300
branchRCL_3
changeset 113 0efa10d348c0
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#ifndef AFSTORAGECLIENT_H
#define AFSTORAGECLIENT_H

#include "afasyncrequestobserver.h"

class CAfStorageClientPrivate;
class CAfEntry;

NONSHARABLE_CLASS(CAfStorageClient) : public CBase
{
public:
    IMPORT_C static CAfStorageClient *NewL(MAfAsyncRequestObserver &observer);
    IMPORT_C static CAfStorageClient *NewLC(MAfAsyncRequestObserver &observer);
    IMPORT_C virtual ~CAfStorageClient();

private:
    CAfStorageClient();
    void ConstructL(MAfAsyncRequestObserver &observer);
    
public:    
    IMPORT_C int addActivity(const CAfEntry &entry, TInt imageHandle);
    IMPORT_C int updateActivity(const CAfEntry &entry, TInt imageHandle);
    IMPORT_C int saveActivity(const CAfEntry &entry, TInt imageHandle);
    IMPORT_C int removeActivity(const CAfEntry &entry);
    IMPORT_C int removeApplicationActivities(const CAfEntry &entry);
    IMPORT_C int activities(RPointerArray<CAfEntry> &dst);
    IMPORT_C int applicationActivities(RPointerArray<CAfEntry> &dst, const CAfEntry &entry);
    IMPORT_C int activityData(CAfEntry *&dst, const CAfEntry &entry);
    IMPORT_C int waitActivity();
    IMPORT_C int launchActivity(const CAfEntry &entry);
    IMPORT_C int getThumbnail(const TSize &size, const TDesC &imagePath, void *userData);
    IMPORT_C int notifyDataChange();

private: 
    CAfStorageClientPrivate *d_ptr;
    
};

#endif //AFSTORAGECLIENT_H