| 1 |
/* |
| 2 |
* CustomAttributeDefinition.h - TaskJuggler |
| 3 |
* |
| 4 |
* SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger <[email protected]> |
| 5 |
* |
| 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. |
| 9 |
* |
| 10 |
* $Id$ |
| 11 |
*/ |
| 12 |
#ifndef _CustomAttributeDefinition_h_ |
| 13 |
#define _CustomAttributeDefinition_h_ |
| 14 |
|
| 15 |
#include <QString> |
| 16 |
|
| 17 |
#include "taskjuggler.h" |
| 18 |
|
| 19 |
namespace TJ |
| 20 |
{ |
| 21 |
|
| 22 |
/* |
| 23 |
* @short Class that stores type and name of a custom attribute. |
| 24 |
* @author Chris Schlaeger <[email protected]> |
| 25 |
*/ |
| 26 |
class CustomAttributeDefinition |
| 27 |
{ |
| 28 |
public: |
| 29 |
CustomAttributeDefinition(const QString& n, CustomAttributeType t) : |
| 30 |
name(n), |
| 31 |
type(t), |
| 32 |
inherit(false) |
| 33 |
{ } |
| 34 |
~CustomAttributeDefinition() { } |
| 35 |
|
| 36 |
const QString& getName() const { return name; } |
| 37 |
CustomAttributeType getType() const { return type; } |
| 38 |
|
| 39 |
void setInherit(bool i) { inherit = i; } |
| 40 |
bool getInherit() const { return inherit; } |
| 41 |
|
| 42 |
private: |
| 43 |
QString name; |
| 44 |
CustomAttributeType type; |
| 45 |
bool inherit; |
| 46 |
} ; |
| 47 |
|
| 48 |
} // namespace TJ |
| 49 |
|
| 50 |
#endif |
| 51 |
|
| 52 |
|