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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • autotests
parleyunittestutilities.cpp
Go to the documentation of this file.
1 /*
2  Copyright 2014 Andreas Xavier <andxav at zoho dot com>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17  USA
18 */
19 
24 #include "parleyunittestutilities.h"
25 
26 using namespace UnitTestUtilities;
27 
28 TemporaryVocDoc::TemporaryVocDoc()
29 {
30  this->setSuffix(".kvtml");
31  this->open();
32  this->close();
33 }
34 
35 TemporaryVocDoc::~TemporaryVocDoc()
36 {
37 }
38 
39 MinimalTempVocDoc::MinimalTempVocDoc()
40 {
41  const QString generator = QString::fromLatin1( "File Locking Unit Tests" );
42  const QString author = QString::fromLatin1( "File Locking Test" );
43  const QString lang = QString::fromLatin1( "File Locking Language Name" );
44  const QString locale = QString::fromLatin1( "en" ) ;
45 
46  KEduVocIdentifier lang0;
47  lang0.setName( lang );
48  lang0.setLocale( locale);
49 
50  KEduVocDocument *doc = new KEduVocDocument();
51  doc->setAuthor( author );
52  doc->appendIdentifier( lang0 );
53  KUrl filename = this->fileName();
54  doc->saveAs(filename, KEduVocDocument::Kvtml, generator);
55  delete doc;
56 }
57 
59 MinimalTempVocDoc::~MinimalTempVocDoc()
60 {
61 }
UnitTestUtilities::TemporaryVocDoc::~TemporaryVocDoc
~TemporaryVocDoc()
Destructor.
Definition: parleyunittestutilities.cpp:35
parleyunittestutilities.h
QString
UnitTestUtilities::MinimalTempVocDoc::MinimalTempVocDoc
MinimalTempVocDoc()
The minimal doc has generator, author, lang and local.
Definition: parleyunittestutilities.cpp:39
UnitTestUtilities::TemporaryVocDoc::TemporaryVocDoc
TemporaryVocDoc()
Create the file, fix the suffix and instantiate it.
Definition: parleyunittestutilities.cpp:28
QString::fromLatin1
QString fromLatin1(const char *str, int size)
UnitTestUtilities::MinimalTempVocDoc::~MinimalTempVocDoc
~MinimalTempVocDoc()
Destructor.
Definition: parleyunittestutilities.cpp:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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