umbrello API Documentation

artifact.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2003-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #ifndef ARTIFACT_H
00013 #define ARTIFACT_H
00014 
00015 #include "umlcanvasobject.h"
00016 
00017 class IDChangeLog;
00018 
00030 class UMLArtifact : public UMLCanvasObject {
00031     Q_OBJECT
00032 public:
00033 
00037     enum Draw_Type {
00038         defaultDraw,
00039         file,
00040         library,
00041         table
00042     };
00043 
00050     explicit UMLArtifact(const QString & Name = "", Uml::IDType id = Uml::id_None);
00051 
00055     virtual ~UMLArtifact();
00056 
00060     virtual void init();
00061 
00065     virtual UMLObject* clone() const;
00066 
00071     void saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
00072 
00076     void setDrawAsType(Draw_Type type);
00077 
00081     Draw_Type getDrawAsType();
00082 
00083 protected:
00088     bool load( QDomElement & element );
00089 
00090 private:
00095     Draw_Type m_drawAsType;
00096 };
00097 
00098 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:54 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003