• 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
  • catalog
phase.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 #ifndef PHASE_H
25 #define PHASE_H
26 
27 #include "version.h"
28 #include "projectlocal.h"
29 
30 #include <QString>
31 #include <QDate>
32 
33 class Catalog;
34 struct Phase
35 {
36  QString name;
37  QString process;
38  QString company;
39  QDate date;
40  QString contact;
41  QString email;
42  QString phone;
43  QString tool;
44 
45  Phase()
46  : date(QDate::currentDate())
47  , tool("lokalize-" LOKALIZE_VERSION)
48  {}
49 
50  Phase(const Phase& rhs)
51  : name(rhs.name)
52  , process(rhs.process)
53  , company(rhs.company)
54  , date(rhs.date)
55  , contact(rhs.contact)
56  , email(rhs.email)
57  , phone(rhs.phone)
58  , tool(rhs.tool)
59  {}
60 
61  bool operator<(const Phase& other) const
62  {
63  return date<other.date;
64  }
65 };
66 
67 
68 struct Tool
69 {
70  QString tool;
71  QString name;
72  QString version;
73  QString company;
74 };
75 
76 const char* const* processes();
77 ProjectLocal::PersonRole roleForProcess(const QString& phase);
78 enum InitOptions {ForceAdd=1};
80 bool initPhaseForCatalog(Catalog* catalog, Phase& phase, int options=0);
81 void generatePhaseForCatalogIfNeeded(Catalog* catalog);
82 
83 #endif
Phase::company
QString company
Definition: phase.h:38
ProjectLocal::PersonRole
PersonRole
Definition: projectlocal.h:13
processes
const char *const * processes()
Definition: phase.cpp:32
Phase::contact
QString contact
Definition: phase.h:40
Phase::phone
QString phone
Definition: phase.h:42
Tool::name
QString name
Definition: phase.h:71
Phase::operator<
bool operator<(const Phase &other) const
Definition: phase.h:61
InitOptions
InitOptions
Definition: phase.h:78
roleForProcess
ProjectLocal::PersonRole roleForProcess(const QString &phase)
Definition: phase.cpp:39
Phase::date
QDate date
Definition: phase.h:39
Phase::name
QString name
Definition: phase.h:36
Phase::email
QString email
Definition: phase.h:41
LOKALIZE_VERSION
#define LOKALIZE_VERSION
Definition: version.h:11
projectlocal.h
QDate
QString
Phase
Definition: phase.h:34
Tool::company
QString company
Definition: phase.h:73
version.h
generatePhaseForCatalogIfNeeded
void generatePhaseForCatalogIfNeeded(Catalog *catalog)
Definition: phase.cpp:47
Tool
Definition: phase.h:68
initPhaseForCatalog
bool initPhaseForCatalog(Catalog *catalog, Phase &phase, int options=0)
Definition: phase.cpp:62
Phase::tool
QString tool
Definition: phase.h:43
Tool::version
QString version
Definition: phase.h:72
Phase::Phase
Phase(const Phase &rhs)
Definition: phase.h:50
Phase::process
QString process
Definition: phase.h:37
Catalog
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
Tool::tool
QString tool
Definition: phase.h:70
ForceAdd
Definition: phase.h:78
Phase::Phase
Phase()
Definition: phase.h:45
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