taskswitcher/utils/inc/tsthumbnailprovider.h
changeset 124 e36b2f4799c0
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
       
     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 TSTHUMBNAILPROVIDER_H
       
    19 #define TSTHUMBNAILPROVIDER_H
       
    20 #include <QObject>
       
    21 #include <QPixmap>
       
    22 #include "tsthumbnailobserver.h"
       
    23 
       
    24 class TsThumbnailProvider: public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28 public:
       
    29     TsThumbnailProvider(MTsThumbnailObserver& observer, QObject* obj);
       
    30     void createThumbnail(CFbsBitmap& source, 
       
    31                          int angle =0);
       
    32 signals:
       
    33     void createThumbnail(QPixmap source, 
       
    34                          int angle, 
       
    35                          const void* userData);
       
    36 public slots:
       
    37     void thumbnailCreated(const QPixmap& thumbnail,
       
    38                           const void *userData);
       
    39 private:
       
    40     MTsThumbnailObserver& mObserver;
       
    41 
       
    42 };
       
    43 
       
    44 #endif //TSTHUMBNAILPROVIDER_H