KDevelop API Documentation

tags.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Jens Dagerbo                                    *
00003  *   jens.dagerbo@swipnet.se                                               *
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 TAGS_H
00013 #define TAGS_H
00014 
00015 #include <qvaluelist.h>
00016 #include <qcstring.h>
00017 #include <qstring.h>
00018 
00019 class Tags
00020 {
00021 public:
00022 
00023     struct TagEntry
00024     {
00025         TagEntry();
00026         TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern );
00027         
00028         QString tag;
00029         QString type;
00030         QString file;
00031         QString pattern;
00032     };
00033     
00034     typedef QValueList<TagEntry> TagList;
00035     
00040     static void setTagsFile( const QString & file );
00041     
00042     static QString getTagsFile();
00043     
00049     static bool hasTag( const QString & tag );
00050     
00051     static unsigned int numberOfPartialMatches( const QString & tagpart );
00052     static unsigned int numberOfExactMatches( const QString & tag );
00053     
00054     static TagList getPartialMatches( const QString & tagpart );
00055     static TagList getExactMatches( const QString & tag );
00056     
00057 
00058 private:
00059     static unsigned int numberOfMatches( const QString & tagpart, bool partial );
00060     static TagList getMatches( const QString & tagpart, bool partial );
00061 
00062     static QCString _tagsfile;
00063 };
00064 
00065 #endif
00066 
00067 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
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:54 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003