activityfw/activitydatabase/hsactivitydbserver/inc/activitythumbnailtask.h
changeset 93 82b66994846c
child 83 156f692b1687
child 96 5d243a69bdda
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
       
     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 ACTIVITYTHUMBNAILTASK_H
       
    18 #define ACTIVITYTHUMBNAILTASK_H
       
    19 
       
    20 #ifndef __E32SVR_H__
       
    21 #define __E32SVR_H__
       
    22 #endif
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include <f32file.h>
       
    27 
       
    28 #include "activitytask.h"
       
    29 #include "activitytaskstorage.h"
       
    30 #include "activitygraphicfilescaling.h"
       
    31 
       
    32 class CFbsBitmap;
       
    33 
       
    34 /**
       
    35  *  CActivityThumbnailTask
       
    36  * 
       
    37  */
       
    38 class CActivityThumbnailTask : public CActivityTask,
       
    39                                public MImageReadyCallBack
       
    40     {
       
    41 public:
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     ~CActivityThumbnailTask();
       
    46 
       
    47     static void ExecuteLD(RFs& session,
       
    48                           MActivityTaskStorage& taskStorage,
       
    49                           const RMessage2& message);
       
    50 
       
    51 private:
       
    52     /**
       
    53      * Constructor for performing 1st stage construction
       
    54      */
       
    55     CActivityThumbnailTask(MActivityTaskStorage& storage, const RMessage2 msg);
       
    56 
       
    57     /**
       
    58      * EPOC default constructor for performing 2nd stage construction
       
    59      */
       
    60     void ConstructL(RFs& session);
       
    61 
       
    62     /**
       
    63      * 
       
    64      */
       
    65     void ImageReadyCallBack(TInt error, const CFbsBitmap *bitmap );
       
    66 
       
    67     const TDesC8& Data()const;
       
    68 
       
    69     void BroadcastReceivedL(const RMessage2& );
       
    70 
       
    71 private:
       
    72     MActivityTaskStorage& mStorage; 
       
    73     const RMessage2 mMsg;
       
    74     CBase* mService;
       
    75     };
       
    76 
       
    77 #endif // ACTIVITYTHUMBNAILTASK_H