forked from EnterpriseDB/stackbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMirror.cpp
32 lines (25 loc) · 834 Bytes
/
Mirror.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/////////////////////////////////////////////////////////////////////////////
// Name: Mirror.cpp
// Purpose: A mirror object
// Author: Dave Page
// Created: 2007-02-13
// RCS-ID: $Id: Mirror.cpp,v 1.3 2008/06/11 10:58:04 dpage Exp $
// Copyright: (c) EnterpriseDB
// Licence: BSD Licence
/////////////////////////////////////////////////////////////////////////////
#include "StackBuilder.h"
// wxWindows headers
#include <wx/wx.h>
#include <wx/treectrl.h>
// Application headers
#include "Mirror.h"
bool Mirror::IsValid()
{
if (protocol != wxT("ftp") && protocol != wxT("http") && protocol != wxT("ftps") && protocol != wxT("https") )
return false;
if (country == wxEmptyString)
return false;
if (hostname == wxEmptyString)
return false;
return true;
}