1
/***************************************************************************
2
* Copyright (C) 2004 by Jens Dagerbo *
3
* jens.dagerbo@swipnet.se *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
15
#include <qvaluelist.h>
18
#include <qstringlist.h>
27
TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern );
35
typedef QValueList<TagEntry> TagList;
38
* Method to set the tag database filename
39
* @param file the tag database filename
41
static void setTagFiles(const QStringList& tagFiles);
43
static QStringList getTagFiles();
46
* Method to check if the tag database contains a specific tag
47
* @param tag Tag to look up
48
* @return returns true if tag database contains 'tag'
50
static bool hasTag( const QString & tag );
52
static unsigned int numberOfPartialMatches( const QString & tagpart );
53
static unsigned int numberOfExactMatches( const QString & tag );
54
static unsigned int numberOfMatches( const QString & tagpart, bool partial );
56
static TagList getPartialMatches( const QString & tagpart );
57
static TagList getExactMatches( const QString & tag );
58
static TagList getMatches( const QString & tagpart, bool partial, const QStringList & types = QStringList() );
61
static Tags::TagList getMatches(const char* tagFile,
62
const QString & tagpart,
64
const QStringList & types );
65
static unsigned int numberOfMatches(const char* tagFile,
66
const QString & tagpart,
68
static bool hasTag(const char* tagFile, const QString & tag );
69
static QStringList _tagFiles;
74
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;