summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/addbookmarks/addbookmarksprefssettings.h
blob: d0263a5bcb4f4714548d853431cfb9e113c16fbd (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
//
// C++ Interface: %{MODULE}
//
// Description: 
//
//
// Author: Roie Kerstein <sf_kersteinroie@bezeqint.net>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef ADDBOOKMARKSPREFSSETTINGS_H
#define ADDBOOKMARKSPREFSSETTINGS_H

#include <tqobject.h>
#include <tqstringlist.h>

/**
@author Roie Kerstein <sf_kersteinroie@bezeqint.net>
*/
class BookmarksPrefsSettings : public TQObject
{
TQ_OBJECT
  
public:
	enum UseSubfolders { Always=0, Never=1, SelectedContacts=2, UnselectedContacts=3 };

    BookmarksPrefsSettings(TQObject *parent = 0, const char *name = 0);

    ~BookmarksPrefsSettings();
    
    void load();
    void save();
    UseSubfolders isFolderForEachContact() {return m_isfolderforeachcontact;}
    void setFolderForEachContact(UseSubfolders val) {m_isfolderforeachcontact = val;}
    bool useSubfolderForContact( TQString nickname );
    TQStringList getContactsList() {return m_contactslist;}
    void setContactsList(TQStringList list) {m_contactslist = list;}
    bool addBookmarksFromUnknownContacts() { return m_addbookmarksfromunknowns; };
    void setAddBookmarksFromUnknownContacts( bool );
    
private:
    bool m_folderPerContact;
    bool m_addbookmarksfromunknowns;
    UseSubfolders m_isfolderforeachcontact;
    TQStringList m_contactslist;

};

#endif