kcookiewin.h
00001 /* 00002 This file is part of the KDE File Manager 00003 00004 Copyright (C) 1998- Waldo Bastian (bastian@kde.org) 00005 Copyright (C) 2000- Dawit Alemayehu (adawit@kde.org) 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 as published by the Free Software Foundation; either version 2 00010 of the License, or (at your option) any later version. 00011 00012 This software is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this library; see the file COPYING. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 //---------------------------------------------------------------------------- 00023 // 00024 // KDE File Manager -- HTTP Cookie Dialogs 00025 // $Id: kcookiewin.h 465272 2005-09-29 09:47:40Z mueller $ 00026 00027 #ifndef _KCOOKIEWIN_H_ 00028 #define _KCOOKIEWIN_H_ 00029 00030 #include <qgroupbox.h> 00031 00032 #include <kdialog.h> 00033 #include "kcookiejar.h" 00034 00035 class KLineEdit; 00036 class QPushButton; 00037 class QVButtonGroup; 00038 class KURLLabel; 00039 00040 class KCookieDetail : public QGroupBox 00041 { 00042 Q_OBJECT 00043 00044 public : 00045 KCookieDetail( KHttpCookieList cookieList, int cookieCount, QWidget *parent=0, 00046 const char *name=0 ); 00047 ~KCookieDetail(); 00048 00049 private : 00050 KLineEdit* m_name; 00051 KLineEdit* m_value; 00052 KLineEdit* m_expires; 00053 KLineEdit* m_domain; 00054 KLineEdit* m_path; 00055 KLineEdit* m_secure; 00056 00057 KHttpCookieList m_cookieList; 00058 KHttpCookiePtr m_cookie; 00059 00060 private slots: 00061 void slotNextCookie(); 00062 }; 00063 00064 class KCookieWin : public KDialog 00065 { 00066 Q_OBJECT 00067 00068 public : 00069 KCookieWin( QWidget *parent, KHttpCookieList cookieList, int defaultButton=0, 00070 bool showDetails=false ); 00071 ~KCookieWin(); 00072 00073 KCookieAdvice advice( KCookieJar *cookiejar, KHttpCookie* cookie ); 00074 00075 private : 00076 QPushButton* m_button; 00077 QVButtonGroup* m_btnGrp; 00078 KCookieDetail* m_detailView; 00079 bool m_showDetails; 00080 00081 private slots: 00082 void slotCookieDetails(); 00083 }; 00084 #endif