KDevelop API Documentation

languages/cpp/codeinformationrepository.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Roberto Raggi * 00003 * roberto@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef CODEINFORMATIONREPOSITORY_H 00013 #define CODEINFORMATIONREPOSITORY_H 00014 00015 #include "catalog.h" 00016 #include "cppcodecompletion.h" 00017 #include <qmap.h> 00018 00019 #include <ktexteditor/codecompletioninterface.h> 00020 00021 class KDevCodeRepository; 00022 00023 class CodeInformationRepository 00024 { 00025 public: 00026 CodeInformationRepository( KDevCodeRepository* rep ); 00027 virtual ~CodeInformationRepository(); 00028 00029 static QValueList<KTextEditor::CompletionEntry> toEntryList( const QValueList<Tag>& tags, 00030 CppCodeCompletion::CompletionMode mode=CppCodeCompletion::NormalCompletion ); 00031 static KTextEditor::CompletionEntry toEntry( Tag& tag, CppCodeCompletion::CompletionMode mode=CppCodeCompletion::NormalCompletion ); 00032 QValueList<KTextEditor::CompletionEntry> getEntriesInScope( const QStringList& scope, bool isInstance, bool recompute=false ); 00033 00034 QValueList<Tag> query( const QValueList<Catalog::QueryArgument>& args ); 00035 QValueList<Tag> getTagsInScope( const QStringList& scope, bool isInstance ); 00036 QValueList<Tag> getTagsInScope( const QString& name, const QStringList& scope ); 00037 00038 QValueList<Tag> getTagsInFile( const QString& fileName ); 00039 QValueList<Tag> getBaseClassList( const QString& className ); 00040 QValueList<Tag> getClassOrNamespaceList( const QStringList& scope ); 00041 00042 private: 00043 QValueList<KTextEditor::CompletionEntry> m_globalEntries; 00044 KDevCodeRepository* m_rep; 00045 00046 private: 00047 CodeInformationRepository( const CodeInformationRepository& source ); 00048 void operator = ( const CodeInformationRepository& source ); 00049 }; 00050 00051 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:42 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003