summaryrefslogtreecommitdiffstats
path: root/src/api.h
blob: 2957b42a6df707cb27160f8e57e1cc5994ae303f (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 "tdevapi.h"


class CodeModel;

/**
API implementation.
*/
class API : public TDevApi
{
public:

  virtual TDevMainWindow *mainWindow() const;
  virtual TDevPartController *partController() const;
  virtual TDevPluginController *pluginController() const;
  virtual TDevCore *core() const;
  virtual CodeModel *codeModel() const;

  static API *getInstance();

  ~API();

protected:

  API();

private:

  static API *s_instance;

  CodeModel *m_classStore;

  
};


#endif