interfaces
codecompletioninterface.cpp
Go to the documentation of this file.00001 00002 #include "codecompletioninterface.h" 00003 #include "view.h" 00004 00005 using namespace KTextEditor; 00006 00007 namespace KTextEditor 00008 { 00009 class PrivateCodeCompletionInterface 00010 { 00011 public: 00012 PrivateCodeCompletionInterface() {} 00013 ~PrivateCodeCompletionInterface(){} 00014 00015 }; 00016 } 00017 00018 unsigned int CodeCompletionInterface::globalCodeCompletionInterfaceNumber = 0; 00019 00020 CodeCompletionInterface::CodeCompletionInterface() 00021 { 00022 globalCodeCompletionInterfaceNumber++; 00023 myCodeCompletionInterfaceNumber = globalCodeCompletionInterfaceNumber++; 00024 00025 d = new PrivateCodeCompletionInterface(); 00026 } 00027 00028 CodeCompletionInterface::~CodeCompletionInterface() 00029 { 00030 delete d; 00031 } 00032 00033 unsigned int CodeCompletionInterface::codeCompletionInterfaceNumber () const 00034 { 00035 return myCodeCompletionInterfaceNumber; 00036 } 00037 00038 void CodeCompletionInterface::setCodeCompletionInterfaceDCOPSuffix (const QCString &/*suffix*/) 00039 { 00040 //d->interface->setObjId ("CodeCompletionInterface#"+suffix); 00041 } 00042 00043 CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view) 00044 { 00045 if (!view) 00046 return 0; 00047 00048 return static_cast<CodeCompletionInterface*>(view->qt_cast("KTextEditor::CodeCompletionInterface")); 00049 } 00050 00051