2007-09-28 17:39:30 +00:00
|
|
|
#ifndef INSET_PROPERTIES_H
|
|
|
|
#define INSET_PROPERTIES_H
|
|
|
|
#include <QDate>
|
|
|
|
#include <QString>
|
2007-10-10 17:50:26 +00:00
|
|
|
/**
|
|
|
|
Cette classe est un conteneur pour les proprietes d'un cartouche de schema
|
|
|
|
: titre, auteur, date, nom de fichier et folio
|
|
|
|
*/
|
2007-09-28 17:39:30 +00:00
|
|
|
class InsetProperties {
|
|
|
|
public:
|
2007-10-10 17:50:26 +00:00
|
|
|
/// Constructeur
|
2007-09-28 17:39:30 +00:00
|
|
|
InsetProperties() {
|
|
|
|
}
|
2007-10-10 17:50:26 +00:00
|
|
|
/// Destructeur
|
2007-09-28 17:39:30 +00:00
|
|
|
virtual ~InsetProperties() {
|
|
|
|
}
|
2007-10-10 17:50:26 +00:00
|
|
|
/**
|
|
|
|
@param ip autre conteneur InsetProperties
|
|
|
|
@return true si ip et ce conteneur sont identiques, false sinon
|
|
|
|
*/
|
2007-09-28 17:39:30 +00:00
|
|
|
bool operator==(const InsetProperties &ip) {
|
|
|
|
return(
|
|
|
|
ip.title == title &&\
|
|
|
|
ip.author == author &&\
|
|
|
|
ip.date == date &&\
|
|
|
|
ip.filename == filename &&\
|
|
|
|
ip.folio == folio
|
|
|
|
);
|
|
|
|
}
|
2007-10-10 17:50:26 +00:00
|
|
|
/**
|
|
|
|
@param ip autre conteneur InsetProperties
|
|
|
|
@return false si ip et ce conteneur sont identiques, true sinon
|
|
|
|
*/
|
2007-09-28 17:39:30 +00:00
|
|
|
bool operator!=(const InsetProperties &ip) {
|
|
|
|
return(!(*this == ip));
|
|
|
|
}
|
|
|
|
// attributs
|
|
|
|
QString title;
|
|
|
|
QString author;
|
|
|
|
QDate date;
|
|
|
|
QString filename;
|
|
|
|
QString folio;
|
|
|
|
};
|
|
|
|
#endif
|