Home · All Classes · Main Classes · Deprecated

mprogressindicator.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
00004 ** All rights reserved.
00005 ** Contact: Nokia Corporation (directui@nokia.com)
00006 **
00007 ** This file is part of libmeegotouch.
00008 **
00009 ** If you have questions regarding the use of this file, please contact
00010 ** Nokia at directui@nokia.com.
00011 **
00012 ** This library is free software; you can redistribute it and/or
00013 ** modify it under the terms of the GNU Lesser General Public
00014 ** License version 2.1 as published by the Free Software Foundation
00015 ** and appearing in the file LICENSE.LGPL included in the packaging
00016 ** of this file.
00017 **
00018 ****************************************************************************/
00019 
00020 #ifndef MPROGRESSINDICATOR_H
00021 #define MPROGRESSINDICATOR_H
00022 
00023 #include "mwidgetcontroller.h"
00024 #include <mprogressindicatormodel.h>
00025 
00026 class MProgressIndicatorPrivate;
00027 
00081 class M_CORE_EXPORT MProgressIndicator : public MWidgetController
00082 {
00083     Q_OBJECT
00084     M_CONTROLLER(MProgressIndicator)
00085 
00086     
00093     Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
00094 
00102     Q_PROPERTY(int maximum READ maximum WRITE setMaximum)
00103 
00111     Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
00112 
00117     Q_PROPERTY(bool unknownDuration READ unknownDuration WRITE setUnknownDuration)
00118 
00119 public:
00120 
00125     static const MTheme::ViewType spinnerType;
00130     static const MTheme::ViewType barType;
00131 
00137     explicit MProgressIndicator(QGraphicsItem *parent = 0, const QString &viewType = QString());
00138 
00142     virtual ~MProgressIndicator();
00143 
00148     int maximum() const;
00149 
00154     int minimum() const;
00155 
00160     int value() const;
00161 
00166     bool unknownDuration() const;
00167 
00168 Q_SIGNALS:
00169 
00173     void valueChanged(int value);
00174 
00175 public Q_SLOTS:
00176 
00180     void reset();
00181 
00185     void setMaximum(int maximum);
00186 
00190     void setMinimum(int minimum);
00191 
00197     void setRange(int minimum, int maximum);
00198 
00204     void setValue(int value);
00205 
00210     void setUnknownDuration(bool unknownDuration);
00211 
00212 protected:
00214     MProgressIndicator(MProgressIndicatorPrivate *dd, MProgressIndicatorModel *model, QGraphicsItem *parent);
00216 
00217 private:
00218     Q_DECLARE_PRIVATE(MProgressIndicator)
00219     Q_DISABLE_COPY(MProgressIndicator)
00220     friend class Ut_MProgressIndicator;
00221 };
00222 
00223 #endif

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:14:21 (PDT)
Doxygen 1.7.1
MeeGo Touch