taskswitcher/screenshotplugin/tsrc/t_screenshotplugin/t_screenshotplugin.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 T_SCREENSHOTPLUGIN_H
       
    18 #define T_SCREENSHOTPLUGIN_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QLabel>
       
    22 class MScreenshotObserver
       
    23 {
       
    24 public:
       
    25     virtual void ScreenshotTaken(int, int, int, int) =0;
       
    26 };
       
    27 /**
       
    28 * @test Test class for Screenshotplugin
       
    29 */
       
    30 class T_Screenshotplugin : public QObject,
       
    31                            public MScreenshotObserver 
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36     T_Screenshotplugin();
       
    37     
       
    38 private slots:
       
    39     void testPlugin();
       
    40 
       
    41 signals:
       
    42    void screenshotTaken(int, int, int, int);
       
    43 
       
    44 private:
       
    45     void ScreenshotTaken(int, int, int, int);
       
    46     void moveApp(int, bool =false);
       
    47     QLabel testUi;
       
    48 
       
    49 };
       
    50 
       
    51 #endif //T_SCREENSHOTPLUGIN_H