~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to src/profiles.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2004-06-15 00:10:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040615001041-enywb6pcpe4sjsw6
Tags: 0.9.2-1
* New upstream release
* Set KDEDIR for ./configure so kde specific files get installed
* Don't install libpsiwidgets.so. It got installed in /usr/share
  where it doesn't belong. May be included (at a better location)
  later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** profiles.h - deal with profiles
3
 
** Copyright (C) 2001, 2002  Justin Karneges
4
 
**
5
 
** This program is free software; you can redistribute it and/or
6
 
** modify it under the terms of the GNU General Public License
7
 
** as published by the Free Software Foundation; either version 2
8
 
** of the License, or (at your option) any later version.
9
 
**
10
 
** This program is distributed in the hope that it will be useful,
11
 
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
** GNU General Public License for more details.
14
 
**
15
 
** You should have received a copy of the GNU General Public License
16
 
** along with this program; if not, write to the Free Software
17
 
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 
**
19
 
****************************************************************************/
 
1
/*
 
2
 * profiles.h - deal with profiles
 
3
 * Copyright (C) 2001-2003  Justin Karneges
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this library; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 *
 
19
 */
20
20
 
21
21
#ifndef PROFILES_H
22
22
#define PROFILES_H
24
24
#include<qstring.h>
25
25
#include<qstringlist.h>
26
26
#include<qvaluelist.h>
27
 
#include"jabcommon.h"
 
27
#include"im.h"
 
28
#include"proxy.h"
28
29
#include"common.h"
29
30
 
30
 
 
31
31
class UserAccount
32
32
{
33
33
public:
34
34
        UserAccount();
 
35
        ~UserAccount();
35
36
 
36
37
        void reset();
37
38
 
38
 
        QString jid() const;
39
 
 
40
39
        QDomElement toXml(QDomDocument &, const QString &tagName);
41
40
        void fromXml(const QDomElement &);
42
41
 
43
 
        //struct Settings
44
 
        //{
45
 
                QString name;
46
 
                QString user, pass, host, resource;
47
 
                int port, priority;
48
 
                bool opt_ssl, opt_pass, opt_auto, opt_keepAlive, opt_plain, opt_log, opt_reconn;
49
 
                bool tog_offline, tog_away, tog_agents;
50
 
        //}
 
42
        QString name;
 
43
        QString jid, pass, host, resource;
 
44
        int port, priority;
 
45
        bool opt_enabled, opt_ssl, opt_pass, opt_host, opt_auto, opt_keepAlive, opt_plain, opt_log, opt_reconn, opt_ignoreSSLWarnings;
 
46
        bool tog_offline, tog_away, tog_agents, tog_hidden;
 
47
 
 
48
        int proxy_index;
 
49
        int proxy_type, proxy_port;
 
50
        QString proxy_host, proxy_user, proxy_pass;
51
51
 
52
52
        QString olr_string;
53
 
        JabRoster roster;
 
53
        XMPP::Roster roster;
 
54
 
 
55
        struct GroupData {
 
56
                bool open;
 
57
                int  rank;
 
58
        };
 
59
        QMap<QString, GroupData> groupState;
 
60
 
 
61
        bool opt_passphrase;
 
62
        QString pgpPassphrase;
 
63
        QString pgpSecretKeyID;
 
64
 
 
65
        VarList keybind;
 
66
 
 
67
        XMPP::Jid dtProxy;
54
68
};
55
69
 
56
70
typedef QValueList<UserAccount> UserAccountList;
70
84
        Options prefs;
71
85
 
72
86
        QRect mwgeom;
 
87
        QStringList recentGCList;
 
88
        QStringList recentBrowseList;
73
89
        QString lastStatusString;
74
90
        bool useSound;
 
91
 
 
92
        ProxyItemList proxyList;
75
93
};
76
94
 
77
95
QString pathToProfile(const QString &);