You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.2 KiB
82 lines
2.2 KiB
15 years ago
|
/**
|
||
|
* kcookiespolicies.h - Cookies configuration
|
||
|
*
|
||
|
* Original Authors
|
||
|
* Copyright (c) Waldo Bastian <bastian@kde.org>
|
||
|
* Copyright (c) 1999 David Faure <faure@kde.org>
|
||
|
*
|
||
|
* Re-written by:
|
||
|
* Copyright (c) 2000- Dawit Alemayehu <adawit@kde.org>
|
||
|
*
|
||
|
* 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 of the License, 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.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#ifndef __KCOOKIESPOLICIES_H
|
||
|
#define __KCOOKIESPOLICIES_H
|
||
|
|
||
15 years ago
|
#include <tqmap.h>
|
||
12 years ago
|
#include <tdecmodule.h>
|
||
15 years ago
|
|
||
|
#include "policydlg.h"
|
||
|
|
||
15 years ago
|
class TQListViewItem;
|
||
15 years ago
|
|
||
|
class DCOPClient;
|
||
|
class KCookiesPolicyDlgUI;
|
||
|
|
||
12 years ago
|
class KCookiesPolicies : public TDECModule
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
15 years ago
|
KCookiesPolicies(TQWidget *parent = 0);
|
||
15 years ago
|
~KCookiesPolicies();
|
||
|
|
||
|
virtual void load();
|
||
|
virtual void save();
|
||
|
virtual void defaults();
|
||
15 years ago
|
virtual TQString quickHelp() const;
|
||
15 years ago
|
|
||
15 years ago
|
void addNewPolicy(const TQString& domain);
|
||
15 years ago
|
|
||
|
protected slots:
|
||
|
void autoAcceptSessionCookies ( bool );
|
||
|
void ignoreCookieExpirationDate ( bool );
|
||
|
void cookiesEnabled( bool );
|
||
|
void configChanged();
|
||
|
|
||
|
void selectionChanged();
|
||
|
void updateButtons();
|
||
|
|
||
|
void deleteAllPressed();
|
||
|
void deletePressed();
|
||
|
void changePressed();
|
||
|
void addPressed();
|
||
|
|
||
|
private:
|
||
15 years ago
|
void updateDomainList(const TQStringList& list);
|
||
|
bool handleDuplicate( const TQString& domain, int );
|
||
|
void splitDomainAdvice (const TQString& configStr, TQString &domain,
|
||
15 years ago
|
KCookieAdvice::Value &advice);
|
||
|
|
||
|
private:
|
||
|
int d_itemsSelected;
|
||
|
bool d_configChanged;
|
||
|
KCookiesPolicyDlgUI* dlg;
|
||
15 years ago
|
TQMap<TQListViewItem*, const char*> m_pDomainPolicy;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif // __KCOOKIESPOLICIES_H
|