phoneuis/bubblemanager2/bubblecore/src/bubbleimagemanager.h
changeset 27 2f8f8080a020
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
       
     1 /*!
       
     2 * Copyright (c) 2010 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 
       
    18 #ifndef BUBBLEIMAGEMANAGER_H_
       
    19 #define BUBBLEIMAGEMANAGER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QPixmap>
       
    23 
       
    24 class BubbleImageManagerPrivate;
       
    25 
       
    26 class BubbleImageManager : public QObject
       
    27     {
       
    28     Q_OBJECT
       
    29     
       
    30 public:
       
    31     explicit BubbleImageManager(QObject* parent = 0);
       
    32     virtual ~BubbleImageManager();
       
    33 
       
    34     const QPixmap* pixmap(const QString& imageFileName);
       
    35 
       
    36     void loadImage(const QString& imageFileName);
       
    37 
       
    38     void unloadImage(const QString& imageFileName);
       
    39 
       
    40     void releasePixmaps();
       
    41 
       
    42 signals:
       
    43     void pixmapReady(const QString& imageFileName);
       
    44     
       
    45 protected:
       
    46     BubbleImageManagerPrivate* const d_ptr;
       
    47     Q_DECLARE_PRIVATE(BubbleImageManager)
       
    48     };
       
    49 
       
    50 #endif /* BUBBLEIMAGEMANAGER_H_ */