taskswitcher/utils/inc/tsscreenshotmsg.h
changeset 116 305818acdca4
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Task list entry
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TSSCREENSHOTMSG_H
       
    19 #define TSSCREENSHOTMSG_H
       
    20 #include <e32base.h>
       
    21 #include <s32strm.h>
       
    22 #include "tstaskmonitorglobals.h"
       
    23 class CFbsBitmap;
       
    24 
       
    25 class CTsScreenshotMsg: public CBase
       
    26 {
       
    27 public:
       
    28     static CTsScreenshotMsg* NewLC( RReadStream& aStream );
       
    29     static CTsScreenshotMsg* NewLC( TInt aWindowGroupId, 
       
    30                                     const CFbsBitmap& aBitmap, 
       
    31                                     UpdatePriority aPrior,
       
    32                                     TInt aRotation );
       
    33     
       
    34     static TInt Size();
       
    35     ~CTsScreenshotMsg();
       
    36     TInt WindowGroupId() const;
       
    37     const CFbsBitmap& Screenshot() const;
       
    38     UpdatePriority Priority() const;
       
    39     TInt Rotation()const;
       
    40     HBufC8* ExternalizeLC() const;
       
    41     void ExternalizeL(RWriteStream &stream) const;
       
    42     void InternalizeL(RReadStream &stream);
       
    43 
       
    44 private:
       
    45     CTsScreenshotMsg();
       
    46     void ConstructL(RReadStream &stream);
       
    47     void ConstructL(TInt windowGroupId, const CFbsBitmap& bitmap, UpdatePriority prior, TInt aRotation);
       
    48 
       
    49 private:
       
    50     TInt iWindowGroupId;
       
    51     UpdatePriority iPriority;
       
    52     CFbsBitmap* iBitmap;
       
    53     TInt iRotation;
       
    54 };
       
    55 
       
    56 #endif