103 lines
2.9 KiB
C++
103 lines
2.9 KiB
C++
// FileZilla Server - a Windows ftp server
|
||
|
||
// Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
|
||
|
||
// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
||
#if !defined(AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_)
|
||
#define AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
// Options.h : Header-Datei
|
||
//
|
||
#include "..\OptionTypes.h"
|
||
|
||
/////////////////////////////////////////////////////////////////////////////
|
||
// Dialogfeld COptions
|
||
|
||
class COptions;
|
||
class COptionsPage;
|
||
class COptionsSpeedLimitPage;
|
||
class COptionsDlg : public CSAPrefsDialog
|
||
{
|
||
// Konstruktion
|
||
public:
|
||
CString GetOption(int nOptionID);
|
||
__int64 GetOptionVal(int nOptionID);
|
||
void SetOption(int nOptionID, CString value);
|
||
void SetOption(int nOptionID, __int64 value);
|
||
BOOL Show();
|
||
COptionsDlg(COptions *pInterfaceOptions, bool localConnection);
|
||
virtual ~COptionsDlg();
|
||
BOOL Init(unsigned char *pData, DWORD dwDataLength);
|
||
BOOL GetAsCommand(char **pBuffer, DWORD *nBufferLength);
|
||
COptions *m_pInterfaceOptions;
|
||
|
||
bool IsLocalConnection() const { return m_localConnection; }
|
||
|
||
protected:
|
||
|
||
std::list<COptionsPage *> m_PageList;
|
||
|
||
COptionsSpeedLimitPage *m_pOptionsSpeedLimitPage;
|
||
|
||
static bool IsNumeric(LPCTSTR str);
|
||
|
||
struct t_OptionsCache
|
||
{
|
||
int nType;
|
||
CString str;
|
||
_int64 value;
|
||
} m_OptionsCache[OPTIONS_NUM];
|
||
|
||
// add a page (page, page title, optional parent)
|
||
bool AddPage(CSAPrefsSubDlg &page, UINT nCaptionID, CSAPrefsSubDlg *pDlgParent = NULL);
|
||
|
||
CSAPrefsSubDlg* GetCurPage();
|
||
|
||
bool m_localConnection;
|
||
|
||
// Dialogfelddaten
|
||
//{{AFX_DATA(COptions)
|
||
enum { IDD = IDD_SAPREFS };
|
||
// HINWEIS: Der Klassen-Assistent f<>gt hier Datenelemente ein
|
||
//}}AFX_DATA
|
||
|
||
|
||
// <20>berschreibungen
|
||
// Vom Klassen-Assistenten generierte virtuelle Funktions<6E>berschreibungen
|
||
//{{AFX_VIRTUAL(COptions)
|
||
protected:
|
||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterst<73>tzung
|
||
//}}AFX_VIRTUAL
|
||
|
||
// Implementierung
|
||
|
||
// Generierte Nachrichtenzuordnungsfunktionen
|
||
//{{AFX_MSG(COptions)
|
||
virtual BOOL OnInitDialog();
|
||
virtual void OnOK();
|
||
//}}AFX_MSG
|
||
DECLARE_MESSAGE_MAP()
|
||
};
|
||
|
||
|
||
//{{AFX_INSERT_LOCATION}}
|
||
// Microsoft Visual C++ f<>gt unmittelbar vor der vorhergehenden Zeile zus<75>tzliche Deklarationen ein.
|
||
|
||
#endif // AFX_OPTIONSDLG_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
|