blob: a49a22a3d385b47b6fdfdbda1c812e7aefd7015b (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//
// C++ Interface: kbsiteinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBSITEINFO_H
#define KBSITEINFO_H
#include <ntqstring.h>
#include <list>
/**
@author Magnus Kulke
*/
using namespace std;
class KbSiteInfo
{
public:
KbSiteInfo();
~KbSiteInfo();
TQString GetInfo() { return m_info; };
TQString GetUser() { return m_user; };
TQString GetPass() { return m_pass; };
TQString GetName() { return m_name; };
TQString GetDefaultDirectory() { return m_defaultdir; };
int GetAlternativeFxp() { return m_altfxp; };
int GetCorrectPasv() { return m_correctpasv; };
int GetPasv() { return m_pasv; };
int GetTls() { return m_tls; };
void SetPasv(int pasv) { m_pasv = pasv; };
void SetTls(int tls) { m_tls = tls; };
void SetDefaultDirectory(TQString path) { m_defaultdir = path; };
void SetAlternativeFxp(int i) { m_altfxp = i; };
void SetCorrectPasv(int i) { m_correctpasv = i; };
void SetUser(TQString user) { m_user = user; };
void SetInfo(TQString info) { m_info = info; };
void SetPass(TQString pass) { m_pass = pass; };
void SetName(TQString name) { m_name = name; };
bool IsLegit();
static list<KbSiteInfo> ParseBookmarks();
static bool WriteBookmarks(const list<KbSiteInfo> bookmarks);
void Clear();
private:
list<KbSiteInfo> goo;
TQString m_user;
TQString m_info;
TQString m_name;
TQString m_pass;
TQString m_defaultdir;
int m_altfxp;
int m_correctpasv;
int m_pasv;
int m_tls;
};
#endif
|