~ubuntu-branches/ubuntu/quantal/kiten/quantal-proposed

« back to all changes in this revision

Viewing changes to lib/DictKanjidic/dictfilekanjidic.h

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2011-07-10 11:23:47 UTC
  • Revision ID: james.westby@ubuntu.com-20110710112347-ykfhtvam3kgssspo
Tags: upstream-4.6.90+repack
ImportĀ upstreamĀ versionĀ 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * This file is part of Kiten, a KDE Japanese Reference Tool                 *
 
3
 * Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com>                 *
 
4
 * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com>                      *
 
5
 * Copyright (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com>                 *
 
6
 *                                                                           *
 
7
 * This library is free software; you can redistribute it and/or             *
 
8
 * modify it under the terms of the GNU Library General Public               *
 
9
 * License as published by the Free Software Foundation; either              *
 
10
 * version 2 of the License, or (at your option) any later version.          *
 
11
 *                                                                           *
 
12
 * This library is distributed in the hope that it will be useful,           *
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
 
15
 * Library General Public License for more details.                          *
 
16
 *                                                                           *
 
17
 * You should have received a copy of the GNU Library General Public License *
 
18
 * along with this library; see the file COPYING.LIB.  If not, write to      *
 
19
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,      *
 
20
 * Boston, MA 02110-1301, USA.                                               *
 
21
 *****************************************************************************/
 
22
 
 
23
#ifndef KITEN_DICTFILEKANJIDIC_H
 
24
#define KITEN_DICTFILEKANJIDIC_H
 
25
 
 
26
#include "../DictEdict/dictfileedict.h" //DictFileEdict definition
 
27
#include "entrykanjidic.h"
 
28
 
 
29
class DictQuery;
 
30
class Entry;
 
31
class KConfigSkeleton;
 
32
class QString;
 
33
 
 
34
class /* NO_EXPORT */  DictFileKanjidic : public DictFileEdict
 
35
{
 
36
  friend class EntryKanjidic;
 
37
 
 
38
  public:
 
39
                          DictFileKanjidic();
 
40
    virtual              ~DictFileKanjidic();
 
41
 
 
42
    QMap<QString,QString> displayOptions() const;
 
43
    virtual void          loadSettings( KConfigSkeleton *item );
 
44
    bool                  validDictionaryFile( const QString &filename );
 
45
    bool                  validQuery( const DictQuery &query );
 
46
 
 
47
  protected:
 
48
    virtual inline Entry *makeEntry( QString x );
 
49
 
 
50
    static QStringList *displayFields;
 
51
};
 
52
 
 
53
#endif