summaryrefslogtreecommitdiffstats
path: root/src/api.h
blob: fb20447a4f7319cdb75f006f3750839fbd9cbb90 (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
#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