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
***************************************************************************/
16
#include <QStringList>
26
TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern );
34
typedef QList<TagEntry> TagList;
37
* Method to set the tag database filename
38
* @param file the tag database filename
40
static void setTagsFile( const QString & file );
42
static QString getTagsFile();
45
* Method to check if the tag database contains a specific tag
46
* @param tag Tag to look up
47
* @return returns true if tag database contains 'tag'
49
static bool hasTag( const QString & tag );
51
static unsigned int numberOfPartialMatches( const QString & tagpart );
52
static unsigned int numberOfExactMatches( const QString & tag );
53
static unsigned int numberOfMatches( const QString & tagpart, bool partial );
55
static TagList getPartialMatches( const QString & tagpart );
56
static TagList getExactMatches( const QString & tag );
57
static TagList getMatches( const QString & tagpart, bool partial, const QStringList & types = QStringList() );
59
static TagList getPartialMatches( const QString & file, const QString & tagpart );
60
static TagList getExactMatches( const QString & file, const QString & tag );
61
static TagList getMatches( const QString & file, const QString & tagpart, bool partial, const QStringList & types = QStringList() );
64
static QString _tagsfile;
69
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;