activityfw/storage/server/inc/afthumbnailtask.h
changeset 104 9b022b1f357c
child 119 50e220be30d1
equal deleted inserted replaced
103:b99b84bcd2d1 104:9b022b1f357c
       
     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 AFTHUMBNAILTASK_H
       
    18 #define AFTHUMBNAILTASK_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 "aftask.h"
       
    29 #include "aftaskstorage.h"
       
    30 #include "tsgraphicfilescalinghandler.h"
       
    31 
       
    32 class CFbsBitmap;
       
    33 
       
    34 class CAfThumbnailTask : public CAfTask,
       
    35                          public MImageReadyCallBack
       
    36 {
       
    37 public:
       
    38     ~CAfThumbnailTask();
       
    39 
       
    40     static void ExecuteLD(MAfTaskStorage& taskStorage,
       
    41                           const RMessage2& message);
       
    42 
       
    43 private:
       
    44     CAfThumbnailTask(MAfTaskStorage& storage, const RMessage2 msg);
       
    45 
       
    46     void ConstructL();
       
    47 
       
    48     void ImageReadyCallBack(TInt error, const CFbsBitmap *bitmap );
       
    49 
       
    50     const TDesC8& Data()const;
       
    51 
       
    52     void BroadcastReceivedL(const RMessage2& );
       
    53 
       
    54     TBool IsSessionTask(const CSession2* session);
       
    55 
       
    56 private:
       
    57     MAfTaskStorage& mStorage; 
       
    58     const RMessage2 mMsg;
       
    59     CBase* mService;
       
    60 };
       
    61 
       
    62 #endif // AFTHUMBNAILTASK_H