--- /dev/null
+/*
+ * Copyright (c) 2009 Eetu Lehmusvuo.
+ *
+ * This file is part of QtMAds.
+ *
+ * QtMAds is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * QtMAds is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with QtMAds. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef QTMADSLABELAD_H
+#define QTMADSLABELAD_H
+
+#include <QtGui/QLabel>
+#include "qtmadsadwidget.h"
+
+#include <QUrl>
+
+class QLabel;
+
+class QtmadsLabelAd : public QtmadsAdWidget
+{
+ Q_OBJECT
+
+public:
+ QtmadsLabelAd(QString service, quint32 id = 0, AdFit fitting = noFit, QWidget *parent = 0);
+ ~QtmadsLabelAd();
+
+ virtual void getAdAsHash(QHash<QString, QVariant> &adParams);
+ virtual ParseState parseFromParameters(QHash<QString, QVariant> &ad);
+
+ void setAsTextAd(bool isOnlyTextAd = true);
+ void setAsImageAd(bool isOnlyImageAd = true);
+
+public slots:
+ void imageRequestSucceeded(const QImage *image);
+ void imageRequestFailed();
+ virtual void clearAd();
+
+signals:
+ void newAdReady();
+ void newAdFailed();
+
+private:
+ QLabel *label;
+};
+
+#endif // QTMADSLABELAD_H