# interfaces Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# codecompletioninterface.cpp

    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

This file is part of the documentation for interfaces Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:34:56 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003