logsui/logsengine/tsrc/hbstubs/hbicon.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:52:41 +0300
changeset 2 7119b73b84d6
parent 0 4a5361db8937
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Orbit stubs for Live Comms UI unit tests
*
*/
#ifndef HBICON_H
#define HBICON_H

#include <QMetaType>
#include <qicon.h> //krazy:exclude=qclasses
class HbIcon
{
public:
    HbIcon();
    HbIcon(const QString &iconName);
    HbIcon(const QIcon &icon);
    HbIcon(const HbIcon &other);
    ~HbIcon();
    bool isNull() const;
    QIcon &qicon() const;
    bool operator==(const HbIcon &other) const;
    
    operator QVariant() const;
    
public: // Data added for the unit testing stub
    QString mName;  
    
    static QIcon* defaultIcon();
};

Q_DECLARE_METATYPE(HbIcon)

#endif // HBICON_H