summaryrefslogtreecommitdiffstats
path: root/akregator/src/settings_advanced.h
blob: ff8a75e73ee4d7f4b2d2052f8bb61bb61b2fe00d (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
#ifndef AKREGATOR_SETTINGS_ADVANCED_H
#define AKREGATOR_SETTINGS_ADVANCED_H

#include "settings_advancedbase.h"

#include <tqmap.h>

class QString;
class QWidget;

namespace Akregator {

namespace Backend
{
    class StorageFactory;
}

class SettingsAdvanced : public SettingsAdvancedBase
{
    Q_OBJECT	

    public:
        SettingsAdvanced(TQWidget* parent=0, const char* name=0);

        /** returns the key of the currently selected factory */
        TQString selectedFactory() const;
        
        void selectFactory(const TQString& key);
        
    public slots:
        
        void slotConfigureStorage();
        void slotFactorySelected(int);
        
    private:
        TQMap<int,Backend::StorageFactory*> m_factories;
        TQMap<TQString, int> m_keyPos;
};

} // namespace Akregator

#endif //AKREGATOR_SETTINGS_ADVANCED_H