summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditorplugins.h
blob: 7e0219bb96b10ffb3f0fbea816c26abf947702c2 (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
#ifndef PROFILE_EDITOR_PLUGINS_H
#define PROFILE_EDITOR_PLUGINS_H

#include "profile.h"

class QWidget;

class ProfileEditorPlugin
{
	public:
		ProfileEditorPlugin(QWidget *parent, Profile p);

		virtual ~ProfileEditorPlugin();

		virtual void save() = 0;

		virtual QWidget *widget() = 0;

	protected:
		QWidget *m_parent, *m_widget;
		Profile m_profile;
};

//#ifdef __cplusplus
//extern "C" {
//#endif

ProfileEditorPlugin *factory_serial(QWidget *parent, const Profile& p);
ProfileEditorPlugin *factory_irda(QWidget *parent, const Profile& p);
ProfileEditorPlugin *factory_modem(QWidget *parent, const Profile& p);

//#ifdef __cplusplus
//}
//#endif

#endif