Back to index

fet  5.18.0
activitytag.h
Go to the documentation of this file.
00001 //
00002 //
00003 // Description: This file is part of FET
00004 //
00005 //
00006 // Author: Liviu Lalescu <Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)>
00007 // Copyright (C) 2005 Liviu Lalescu <http://lalescu.ro/liviu/>
00008 //
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef ACTIVITYTAG_H
00019 #define ACTIVITYTAG_H
00020 
00021 #include <QCoreApplication>
00022 
00023 #include "timetable_defs.h"
00024 
00025 #include <QString>
00026 #include <QList>
00027 
00028 class ActivityTag;
00029 class Rules;
00030 
00031 typedef QList<ActivityTag*> ActivityTagsList;
00032 
00038 class ActivityTag{
00039        Q_DECLARE_TR_FUNCTIONS(ActivityTag)
00040 
00041 public:
00042        QString name;
00043 
00044        ActivityTag();
00045        ~ActivityTag();
00046 
00047        QString getXmlDescription();
00048        QString getDetailedDescription();
00049        QString getDetailedDescriptionWithConstraints(Rules& r);
00050 };
00051 
00052 int activityTagsAscending(const ActivityTag* st1, const ActivityTag* st2);
00053 
00054 #endif