~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to contrib/Windows/Old/servername.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// servername.cpp : implementation file
 
2
//
 
3
 
 
4
/*
 
5
 *  Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 2 of the License, or
 
10
 *  (at your option) any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
 *  MA 02110-1301, USA.
 
21
 */
 
22
#include "stdafx.h"
 
23
#include "clamav.h"
 
24
#include "servername.h"
 
25
 
 
26
#ifdef _DEBUG
 
27
#undef THIS_FILE
 
28
static char BASED_CODE THIS_FILE[] = __FILE__;
 
29
#endif
 
30
 
 
31
/////////////////////////////////////////////////////////////////////////////
 
32
// ServerName dialog
 
33
 
 
34
 
 
35
ServerName::ServerName(CWnd* pParent /*=NULL*/)
 
36
        : CDialog(ServerName::IDD, pParent)
 
37
{
 
38
        //{{AFX_DATA_INIT(ServerName)
 
39
        m_serverName = _T("");
 
40
        m_port = DEFAULT_PORT;
 
41
        //}}AFX_DATA_INIT
 
42
}
 
43
 
 
44
 
 
45
void ServerName::DoDataExchange(CDataExchange* pDX)
 
46
{
 
47
        CDialog::DoDataExchange(pDX);
 
48
        //{{AFX_DATA_MAP(ServerName)
 
49
        DDX_Text(pDX, IDC_SERVERNAME, m_serverName);
 
50
        DDV_MaxChars(pDX, m_serverName, 20);
 
51
        DDX_Text(pDX, IDC_SERVERPORT, m_port);
 
52
        DDV_MinMaxUInt(pDX, m_port, 1, 65535);
 
53
        //}}AFX_DATA_MAP
 
54
}
 
55
 
 
56
 
 
57
BEGIN_MESSAGE_MAP(ServerName, CDialog)
 
58
        //{{AFX_MSG_MAP(ServerName)
 
59
                // NOTE: the ClassWizard will add message map macros here
 
60
        //}}AFX_MSG_MAP
 
61
END_MESSAGE_MAP()
 
62
 
 
63
 
 
64
/////////////////////////////////////////////////////////////////////////////
 
65
// ServerName message handlers