summaryrefslogtreecommitdiffabout
path: root/kmicromail/nntpgroups.h
blob: 80cc3295ce2e70e2cd5bc31168e1cab6a2f9027d (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
#ifndef __NNTPGROUPS_WINDOW__
#define __NNTPGROUPS_WINDOW__

#include "nntpgroupsui.h"

#include <libmailwrapper/nntpwrapper.h>

class NNTPaccount;
class QStringList;

class NNTPGroups:public NNTPGroupsUI
{
    Q_OBJECT
public:
    NNTPGroups(NNTPaccount *account, QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
    virtual ~NNTPGroups();
    /* must be called from external.
     * it will store the new subscription list into the account
     * but don't save them, this must be done by the calling class.
     */
    void storeValues();

protected slots:
    virtual void slotGetNG();
    
protected:
    virtual void fillGroups();

    NNTPaccount*m_Account;
    QStringList subscribedGroups,subscribedGroupsNotListed;
};

#endif