radioapp/radiowidgets/inc/radiofrequencyitem.h
changeset 13 46974bebc798
child 14 63aabac4416d
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     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 
       
    18 #ifndef RADIOFREQUENCYITEM_H
       
    19 #define RADIOFREQUENCYITEM_H
       
    20 
       
    21 // System includes
       
    22 #include <qpixmap>
       
    23 
       
    24 // Forward declarations
       
    25 class RadioFrequencyStrip;
       
    26 class QGraphicsPixmapItem;
       
    27 
       
    28 // Class declaration
       
    29 class RadioFrequencyItem
       
    30 {
       
    31 public:
       
    32 
       
    33     RadioFrequencyItem( QString frequency );
       
    34 
       
    35     uint frequency() const;
       
    36 
       
    37     QPixmap updatePrimitive( QGraphicsPixmapItem* item );
       
    38 
       
    39     void setPixmap( QPixmap pixmap );
       
    40 
       
    41 private: // data
       
    42 
       
    43     uint                        mFrequency;
       
    44 
       
    45     QPixmap                     mPixmap;
       
    46 
       
    47     QGraphicsPixmapItem*        mGraphicsItem;
       
    48 
       
    49 };
       
    50 
       
    51 #endif // RADIOFREQUENCYITEM_H