summaryrefslogtreecommitdiff
path: root/src/cookiedialogs.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-18 10:24:57 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-03 00:02:06 +0200
commite990840b71a0d122627125a6223f576816d8ecda (patch)
treef0af1d9380b787b8b0f7219d7df2a83f9ed20c50 /src/cookiedialogs.h
parentupdating .gitignore (diff)
downloadrekonq-e990840b71a0d122627125a6223f576816d8ecda.tar.xz
1st commit on cookie branch. Refactoring Ui classes
Diffstat (limited to 'src/cookiedialogs.h')
-rw-r--r--src/cookiedialogs.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/cookiedialogs.h b/src/cookiedialogs.h
new file mode 100644
index 00000000..0f7b8036
--- /dev/null
+++ b/src/cookiedialogs.h
@@ -0,0 +1,78 @@
+/* ============================================================
+*
+* This file is a part of the rekonq project
+*
+* Copyright (C) 2009 by Andrea Diamantini <adjam7 at gmail dot com>
+*
+*
+* This program is free software; you can redistribute it
+* and/or modify it under the terms of the GNU General
+* Public License as published by the Free Software Foundation;
+* either version 2, or (at your option) any later version.
+*
+* This program 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 General Public License for more details.
+*
+* ============================================================ */
+
+
+
+#ifndef COOKIEDIALOGS_H
+#define COOKIEDIALOGS_H
+
+
+#include <KDialog>
+
+// Qt Includes
+#include <QtCore/QStringList>
+#include <QtCore/QAbstractItemModel>
+#include <QtGui/QTableView>
+#include <QtNetwork/QNetworkCookieJar>
+#include <QtGui/QSortFilterProxyModel>
+
+class CookieJar;
+class CookieExceptionsModel;
+
+class CookiesDialog : public KDialog
+{
+ Q_OBJECT
+
+public:
+ explicit CookiesDialog(CookieJar *cookieJar, QWidget *parent = 0);
+
+private:
+ QSortFilterProxyModel *m_proxyModel;
+};
+
+
+// -----------------------------------------------------------------------------------------------------------------
+
+
+#include "ui_cookiesexceptions.h"
+
+
+class CookiesExceptionsDialog : public KDialog
+{
+ Q_OBJECT
+
+public:
+ explicit CookiesExceptionsDialog(CookieJar *cookieJar, QWidget *parent = 0);
+
+private slots:
+ void block();
+ void allow();
+ void allowForSession();
+ void textChanged(const QString &text);
+
+private:
+ CookieExceptionsModel *m_exceptionsModel;
+ QSortFilterProxyModel *m_proxyModel;
+ CookieJar *m_cookieJar;
+
+ Ui::CookiesExceptionsWidget *exceptionsWidget;
+};
+
+
+#endif