From: Reto Zingg Date: Sat, 15 Dec 2012 17:28:48 +0000 (+0200) Subject: adapt qmvoctext.h for querymee X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=505926387d3be25ec06ec39a1eef15ed3fe3637e;p=libqmvoc.git adapt qmvoctext.h for querymee --- diff --git a/qmvoctext.h b/qmvoctext.h index 1d196c2..0190d0f 100644 --- a/qmvoctext.h +++ b/qmvoctext.h @@ -1,5 +1,10 @@ +/*************************************************************************** +* this file is from kdeedu project. Filename: keduvoctext.h +***************************************************************************/ + /*************************************************************************** Copyright 2007-2008 Frederik Gladhorn + Copyright (C) 2010, 2012 Reto Zingg ***************************************************************************/ /*************************************************************************** @@ -11,10 +16,10 @@ * * ***************************************************************************/ -#ifndef KEDUVOCTEXT_H -#define KEDUVOCTEXT_H +#ifndef QMVOCTEXT_H +#define QMVOCTEXT_H -#include "libkeduvocdocument_export.h" +#include "libqmvocdocument_export.h" #include @@ -56,20 +61,20 @@ class QDomElement; * This should be used instead of strings for all things that can be tested and thus get a grade. @author Frederik Gladhorn */ -class KEDUVOCDOCUMENT_EXPORT KEduVocText +class QMVOCDOCUMENT_EXPORT QmVocText { public: /** default constructor */ - KEduVocText(const QString& text = QString()); + QmVocText(const QString& text = QString()); /** copy constructor * provides safe copy of d pointer * @param other object to copy from */ - KEduVocText( const KEduVocText &other ); + QmVocText( const QmVocText &other ); /** default destructor */ - ~KEduVocText(); + ~QmVocText(); /** * The translation as string (the word itself) @@ -88,13 +93,13 @@ public: * @param other grades copied * @return reference to the new grades */ - KEduVocText& operator= ( const KEduVocText &other ); + QmVocText& operator= ( const QmVocText &other ); /** * Compare two sets of grades. * @param other * @return true if equal */ - bool operator== ( const KEduVocText &other ) const; + bool operator== ( const QmVocText &other ) const; /** returns how often this entry has been practiced as int @@ -163,8 +168,8 @@ public: void toKVTML2(QDomElement& parent); private: - class KEduVocTextPrivate; - KEduVocTextPrivate * const d; + class QmVocTextPrivate; + QmVocTextPrivate * const d; }; #endif