2 * ReferenceAttribute.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
12 #ifndef _ReferenceAttribute_h_
13 #define _ReferenceAttribute_h_
17 #include "CustomAttribute.h"
20 * @short User defined attribute that holds a text and a link.
21 * @author Chris Schlaeger <cs@kde.org>
23 class ReferenceAttribute : public CustomAttribute
26 ReferenceAttribute() :
32 ReferenceAttribute(const ReferenceAttribute& ra) :
38 ReferenceAttribute(const QString& u, const QString& l) :
44 virtual ~ReferenceAttribute() { }
46 CustomAttributeType getType() const { return CAT_Reference; }
47 void setUrl(const QString& u) { url = u; }
48 const QString& getURL() const { return url; }
50 void setLabel(const QString& l) { label = l; }
51 const QString& getLabel() const { return label; }