umbrello API Documentation

javacodegenerationpolicy.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 /*  This code generated by:
00013  *      Author : thomas
00014  *      Date   : Mon Jun 23 2003
00015  */
00016 
00017 #ifndef JAVACODEGENERATIONPOLICY_H
00018 #define JAVACODEGENERATIONPOLICY_H
00019 
00020 #include <qstring.h>
00021 #include "codegenpolicyext.h"
00022 #include "../codegenerationpolicy.h"
00023 
00024 class KConfig;
00025 class CodeGenerationPolicyPage;
00026 
00027 class JavaCodeGenerationPolicy : public CodeGenPolicyExt
00028 {
00029     Q_OBJECT
00030 public:
00031 
00032     static const bool DEFAULT_AUTO_GEN_ATTRIB_ACCESSORS;
00033     static const bool DEFAULT_AUTO_GEN_ASSOC_ACCESSORS;
00034 
00035     // Constructors/Destructors
00036     //
00037 
00041     //JavaCodeGenerationPolicy (CodeGenerationPolicy * defaults = 0);
00042     JavaCodeGenerationPolicy (KConfig * config = 0);
00043 
00047     virtual ~JavaCodeGenerationPolicy ( );
00048 
00049     // Public attributes
00050     //
00051 
00052 
00053     // Public attribute accessor methods
00054     //
00055 
00060     void setAutoGenerateAttribAccessors ( bool var );
00061 
00066     bool getAutoGenerateAttribAccessors( );
00067 
00072     void setAutoGenerateAssocAccessors ( bool var );
00073 
00078     bool getAutoGenerateAssocAccessors( );
00079 
00083     virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
00084 
00088     virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
00089 
00093     virtual void writeConfig (KConfig * config);
00094 
00099     CodeGenerationPolicyPage * createPage ( QWidget *parent = 0, const char * name = 0);
00100 
00101 protected:
00102 
00105     void init ( );
00106 
00107 private:
00108 
00109     CodeGenerationPolicy *m_commonPolicy;
00110     bool m_autoGenerateConstructors;
00111     bool m_autoGenerateAttribAccessors;
00112     bool m_autoGenerateAssocAccessors;
00113 
00114 };
00115 
00116 #endif // JAVACODEGENERATIONPOLICY_H
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:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003