taskswitcher/screenshotplugin/inc/tsscreenshotnotifier.h
changeset 119 50e220be30d1
equal deleted inserted replaced
116:305818acdca4 119:50e220be30d1
       
     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: 
       
    15 *
       
    16 */
       
    17 #ifndef TSSCREENSHOTNOTIFIER_H
       
    18 #define TSSCREENSHOTNOTIFIER_H
       
    19 
       
    20 #include "tsnotifier.h"
       
    21 class CFbsBitmap;
       
    22 
       
    23 class CTsScreenshotNotifier: public CActive
       
    24     {
       
    25 public:
       
    26     static CTsScreenshotNotifier* NewL( MTsNotifier& aNotifier,
       
    27                                         TInt aId,
       
    28                                         CFbsBitmap* aBitmap,
       
    29                                         TInt aAngle );
       
    30     ~CTsScreenshotNotifier();
       
    31 
       
    32     TInt Handle() const;
       
    33 private:
       
    34     CTsScreenshotNotifier( MTsNotifier& aNotifier, 
       
    35                            TInt aId,
       
    36                            CFbsBitmap* aBitmap,
       
    37                            TInt aAngle );
       
    38 
       
    39 protected://from CActive
       
    40     void DoCancel();
       
    41     void RunL();
       
    42     TInt RunError(TInt aError);
       
    43 
       
    44 private:
       
    45     MTsNotifier& iNotifier;
       
    46     const TInt iId;
       
    47     const CFbsBitmap* iBitmap;
       
    48     const TInt iAngle;
       
    49 
       
    50     };
       
    51 
       
    52 #endif //SSCREENSHOTNOTIFIER_H