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.
 
 
 
 
 
 

77 lines
1.9 KiB

/*
*
*
* 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.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*/
#pragma once
#include "nsICookiePromptService.h"
#include "resource.h"
#include "DialogEx.h"
#ifndef XP_WIN
#define XP_WIN
#endif
#define NS_COOKIEPROMPTSERVICE_CID \
{0xCE002B28, 0x92B7, 0x4701, {0x86, 0x21, 0xCD, 0x92, 0x58, 0x66, 0xFB, 0x87}}
static NS_DEFINE_CID(kPromptCookieServiceCID, NS_COOKIEPROMPTSERVICE_CID);
class CCookiePromptService: public nsICookiePromptService
{
public:
CCookiePromptService();
virtual ~CCookiePromptService();
NS_DECL_ISUPPORTS
NS_DECL_NSICOOKIEPROMPTSERVICE
};
class CConfirmCookieDialog : public CDialog
{
//DECLARE_DYNAMIC(CConfirmCookieDialog)
public:
CConfirmCookieDialog::CConfirmCookieDialog(CWnd* pParent, const TCHAR* pText, BOOL bAcceptSite);
virtual ~CConfirmCookieDialog();
int m_bCheckBoxValue;
CString m_csMsg,
m_csName,
m_csValue,
m_csHost,
m_csPath,
m_csExpires,
m_csSendFor;
CStatic m_bIcon;
enum { IDD = IDD_CONFIRM_COOKIE };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // Prise en charge DDX/DDV
CString m_csText;
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedAllowsession();
afx_msg void OnBnClickedDeny();
afx_msg void OnBnClickedAllow();
afx_msg void OnClose();
};