blob: 573ae891880598181d424e7f988927bbd9155965 (
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 <qstring.h>
#include <list>
/**
@author Magnus Kulke
*/
using namespace std;
class KbSiteInfo
{
public:
KbSiteInfo();
~KbSiteInfo();
QString GetInfo() { return m_info; };
QString GetUser() { return m_user; };
QString GetPass() { return m_pass; };
QString GetName() { return m_name; };
QString 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(QString path) { m_defaultdir = path; };
void SetAlternativeFxp(int i) { m_altfxp = i; };
void SetCorrectPasv(int i) { m_correctpasv = i; };
void SetUser(QString user) { m_user = user; };
void SetInfo(QString info) { m_info = info; };
void SetPass(QString pass) { m_pass = pass; };
void SetName(QString name) { m_name = name; };
bool IsLegit();
static list<KbSiteInfo> ParseBookmarks();
static bool WriteBookmarks(const list<KbSiteInfo> bookmarks);
void Clear();
private:
list<KbSiteInfo> goo;
QString m_user;
QString m_info;
QString m_name;
QString m_pass;
QString m_defaultdir;
int m_altfxp;
int m_correctpasv;
int m_pasv;
int m_tls;
};
#endif
|