KDevelop API Documentation

api.cpp

Go to the documentation of this file.
00001 #include "core.h"
00002 #include "codemodel.h"
00003 #include "partcontroller.h"
00004 #include "toplevel.h"
00005 #include "debugger.h"
00006 #include "api.h"
00007 
00008 
00009 API *API::s_instance = 0;
00010 
00011 
00012 KDevMainWindow *API::mainWindow() const
00013 {
00014   return TopLevel::getInstance();
00015 }
00016 
00017 bool API::mainWindowValid() const
00018 {
00019   return TopLevel::mainWindowValid();
00020 }
00021 
00022 KDevPartController *API::partController() const
00023 {
00024   return PartController::getInstance();
00025 }
00026 
00027 
00028 KDevCore *API::core() const
00029 {
00030   return Core::getInstance();
00031 }
00032 
00033 
00034 CodeModel *API::codeModel() const
00035 {
00036   return m_classStore;
00037 }
00038 
00039 
00040 KDevDebugger *API::debugger() const
00041 {
00042   return Debugger::getInstance();
00043 }
00044 
00045 
00046 API *API::getInstance()
00047 {
00048   if (!s_instance)
00049     s_instance = new API;
00050   return s_instance;
00051 }
00052 
00053 
00054 API::API()
00055   : KDevApi()
00056 {
00057   m_classStore = new CodeModel();
00058 }
00059 
00060 
00061 API::~API()
00062 {
00063   delete( m_classStore );
00064   m_classStore = 0;
00065 }
00066 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:58 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003