summaryrefslogtreecommitdiffstats
path: root/src/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.h')
-rw-r--r--src/api.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/api.h b/src/api.h
new file mode 100644
index 00000000..fb20447a
--- /dev/null
+++ b/src/api.h
@@ -0,0 +1,41 @@
+#ifndef _API_H_
+#define _API_H_
+
+
+#include "kdevapi.h"
+
+
+class CodeModel;
+
+/**
+API implementation.
+*/
+class API : public KDevApi
+{
+public:
+
+ virtual KDevMainWindow *mainWindow() const;
+ virtual KDevPartController *partController() const;
+ virtual KDevPluginController *pluginController() const;
+ virtual KDevCore *core() const;
+ virtual CodeModel *codeModel() const;
+
+ static API *getInstance();
+
+ ~API();
+
+protected:
+
+ API();
+
+private:
+
+ static API *s_instance;
+
+ CodeModel *m_classStore;
+
+
+};
+
+
+#endif