• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • tm
tmentry.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3 
4  Copyright (C) 2009 by Nick Shaforostoff <shafff@ukr.net>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License as
8  published by the Free Software Foundation; either version 2 of
9  the License or (at your option) version 3 or any later version
10  accepted by the membership of KDE e.V. (or its successor approved
11  by the membership of KDE e.V.), which shall act as a proxy
12  defined in Section 14 of version 3 of the license.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 
23 **************************************************************************** */
24 
25 #ifndef TMENTRY_H
26 #define TMENTRY_H
27 
28 #include "catalogstring.h"
29 
30 #include <QString>
31 #include <QDate>
32 
33 namespace TM {
34 
35 struct TMEntry
36 {
37  CatalogString source;
38  CatalogString target;
39 
40  QString ctxt;
41  QString file;
42  QDate date;
43  QDate changeDate;
44  QString changeAuthor;
45 
46  //the remaining are used only for results
47  qlonglong id;
48  short score:16;//100.00%==10000
49  ushort hits:15;
50  bool obsolete:1;
51  QString dbName;
52 
53  QString diff;
54 
55  //different databases can have different settings:
56  QString accelExpr;
57  QString markupExpr;
58 
59  bool operator<(const TMEntry& other) const
60  {
61  if (score==other.score)
62  {
63  if (hits==other.hits)
64  return date<other.date;
65  return hits<other.hits;
66  }
67  return score<other.score;
68  }
69 
70  TMEntry():hits(0){}
71 };
72 
73 }
74 
75 #endif
TM::TMEntry::file
QString file
Definition: tmentry.h:41
catalogstring.h
TM::TMEntry::dbName
QString dbName
Definition: tmentry.h:51
TM::TMEntry::markupExpr
QString markupExpr
Definition: tmentry.h:57
TM::TMEntry::score
short score
Definition: tmentry.h:48
TM::TMEntry::hits
ushort hits
Definition: tmentry.h:49
TM::TMEntry
Definition: tmentry.h:35
TM::TMEntry::changeDate
QDate changeDate
Definition: tmentry.h:43
TM::TMEntry::id
qlonglong id
Definition: tmentry.h:47
TM::TMEntry::operator<
bool operator<(const TMEntry &other) const
Definition: tmentry.h:59
TM::TMEntry::accelExpr
QString accelExpr
Definition: tmentry.h:56
TM::TMEntry::source
CatalogString source
Definition: tmentry.h:37
QDate
QString
TM::TMEntry::date
QDate date
Definition: tmentry.h:42
TM::TMEntry::target
CatalogString target
Definition: tmentry.h:38
TM::TMEntry::diff
QString diff
Definition: tmentry.h:53
CatalogString
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:128
TM::TMEntry::changeAuthor
QString changeAuthor
Definition: tmentry.h:44
TM::TMEntry::TMEntry
TMEntry()
Definition: tmentry.h:70
TM::TMEntry::obsolete
bool obsolete
Definition: tmentry.h:50
TM::TMEntry::ctxt
QString ctxt
Definition: tmentry.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal