tags.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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
This file is part of the documentation for KDevelop Version 3.1.2.