diff options
Diffstat (limited to 'src/uml/qumlinteractionuse.h')
-rw-r--r-- | src/uml/qumlinteractionuse.h | 132 |
1 files changed, 23 insertions, 109 deletions
diff --git a/src/uml/qumlinteractionuse.h b/src/uml/qumlinteractionuse.h index 240fe944..1ac36054 100644 --- a/src/uml/qumlinteractionuse.h +++ b/src/uml/qumlinteractionuse.h @@ -43,10 +43,8 @@ #include <QtUml/QtUmlGlobal> -#include <QtCore/QObject> -#include "private/umlinteractionuse_p.h" +#include <QtUml/QUmlInteractionFragment> -#include <QtUml/QtUmlNamespace> QT_BEGIN_HEADER @@ -54,126 +52,42 @@ QT_BEGIN_NAMESPACE QT_MODULE(QtUml) -class QUmlComment; -class QUmlDependency; -class QUmlElement; class QUmlGate; -class QUmlGeneralOrdering; class QUmlInteraction; -class QUmlInteractionOperand; -class QUmlLifeline; -class QUmlNamedElement; -class QUmlNamespace; -class QUmlPackage; class QUmlProperty; -class QUmlStringExpression; class QUmlValueSpecification; -class Q_UML_EXPORT QUmlInteractionUse : public QObject, public UmlInteractionUse +class Q_UML_EXPORT QUmlInteractionUse : public QUmlInteractionFragment { - Q_OBJECT - - // Properties [Element] - Q_PROPERTY(QSet<QUmlComment *> ownedComment READ ownedComment) - Q_PROPERTY(QSet<QUmlElement *> ownedElement READ ownedElement) - Q_PROPERTY(QUmlElement * owner READ owner) - - // Properties [NamedElement] - Q_PROPERTY(QSet<QUmlDependency *> clientDependency READ clientDependency) - Q_PROPERTY(QString name READ name) - Q_PROPERTY(QUmlStringExpression * nameExpression READ nameExpression) - Q_PROPERTY(QUmlNamespace * namespace_ READ namespace_) - Q_PROPERTY(QString qualifiedName READ qualifiedName) - Q_PROPERTY(QtUml::VisibilityKind visibility READ visibility) - - // Properties [InteractionFragment] - Q_PROPERTY(QSet<QUmlLifeline *> covered READ covered) - Q_PROPERTY(QUmlInteraction * enclosingInteraction READ enclosingInteraction) - Q_PROPERTY(QUmlInteractionOperand * enclosingOperand READ enclosingOperand) - Q_PROPERTY(QSet<QUmlGeneralOrdering *> generalOrdering READ generalOrdering) - - // Properties [InteractionUse] - Q_PROPERTY(QSet<QUmlGate *> actualGate READ actualGate) - Q_PROPERTY(QList<QUmlValueSpecification *> argument READ argument) - Q_PROPERTY(QUmlInteraction * refersTo READ refersTo) - Q_PROPERTY(QUmlValueSpecification * returnValue READ returnValue) - Q_PROPERTY(QUmlProperty * returnValueRecipient READ returnValueRecipient) - public: - Q_INVOKABLE explicit QUmlInteractionUse(QObject *parent = 0); - - // Owned attributes [Element] - Q_INVOKABLE const QSet<QUmlComment *> ownedComment() const; - Q_INVOKABLE const QSet<QUmlElement *> ownedElement() const; - Q_INVOKABLE QUmlElement *owner() const; - - // Owned attributes [NamedElement] - Q_INVOKABLE const QSet<QUmlDependency *> clientDependency() const; - Q_INVOKABLE QString name() const; - Q_INVOKABLE QUmlStringExpression *nameExpression() const; - Q_INVOKABLE QUmlNamespace *namespace_() const; - Q_INVOKABLE QString qualifiedName() const; - Q_INVOKABLE QtUml::VisibilityKind visibility() const; - - // Owned attributes [InteractionFragment] - Q_INVOKABLE const QSet<QUmlLifeline *> covered() const; - Q_INVOKABLE QUmlInteraction *enclosingInteraction() const; - Q_INVOKABLE QUmlInteractionOperand *enclosingOperand() const; - Q_INVOKABLE const QSet<QUmlGeneralOrdering *> generalOrdering() const; - - // Owned attributes [InteractionUse] - Q_INVOKABLE const QSet<QUmlGate *> actualGate() const; - Q_INVOKABLE const QList<QUmlValueSpecification *> argument() const; - Q_INVOKABLE QUmlInteraction *refersTo() const; - Q_INVOKABLE QUmlValueSpecification *returnValue() const; - Q_INVOKABLE QUmlProperty *returnValueRecipient() const; - - // Operations [Element] - Q_INVOKABLE QSet<QUmlElement *> allOwnedElements() const; - Q_INVOKABLE bool mustBeOwned() const; - - // Operations [NamedElement] - Q_INVOKABLE QList<QUmlNamespace *> allNamespaces() const; - Q_INVOKABLE QSet<QUmlPackage *> allOwningPackages() const; - Q_INVOKABLE bool isDistinguishableFrom(QUmlNamedElement *n, QUmlNamespace *ns) const; - Q_INVOKABLE QString separator() const; - -public Q_SLOTS: - - // Slots for owned attributes [Element] - void addOwnedComment(UmlComment *ownedComment); - void removeOwnedComment(UmlComment *ownedComment); - - // Slots for owned attributes [NamedElement] - void addClientDependency(UmlDependency *clientDependency); - void removeClientDependency(UmlDependency *clientDependency); - void setName(QString name); - void setNameExpression(QUmlStringExpression *nameExpression); - void setVisibility(QtUml::VisibilityKind visibility); - - // Slots for owned attributes [InteractionFragment] - void addCovered(UmlLifeline *covered); - void removeCovered(UmlLifeline *covered); - void setEnclosingInteraction(QUmlInteraction *enclosingInteraction); - void setEnclosingOperand(QUmlInteractionOperand *enclosingOperand); - void addGeneralOrdering(UmlGeneralOrdering *generalOrdering); - void removeGeneralOrdering(UmlGeneralOrdering *generalOrdering); - - // Slots for owned attributes [InteractionUse] - void addActualGate(UmlGate *actualGate); - void removeActualGate(UmlGate *actualGate); - void addArgument(UmlValueSpecification *argument); - void removeArgument(UmlValueSpecification *argument); + explicit QUmlInteractionUse(bool createQObject = true); + virtual ~QUmlInteractionUse(); + + // Owned attributes + const QSet<QUmlGate *> actualGate() const; + void addActualGate(QUmlGate *actualGate); + void removeActualGate(QUmlGate *actualGate); + const QList<QUmlValueSpecification *> argument() const; + void addArgument(QUmlValueSpecification *argument); + void removeArgument(QUmlValueSpecification *argument); + QUmlInteraction *refersTo() const; void setRefersTo(QUmlInteraction *refersTo); + QUmlValueSpecification *returnValue() const; void setReturnValue(QUmlValueSpecification *returnValue); + QUmlProperty *returnValueRecipient() const; void setReturnValueRecipient(QUmlProperty *returnValueRecipient); + +protected: + QSet<QUmlGate *> _actualGate; + QList<QUmlValueSpecification *> _argument; + QUmlInteraction *_refersTo; + QUmlValueSpecification *_returnValue; + QUmlProperty *_returnValueRecipient; }; QT_END_NAMESPACE -Q_DECLARE_METATYPE(QUmlInteractionUse *) -Q_DECLARE_METATYPE(QList<QUmlInteractionUse *> *) -Q_DECLARE_METATYPE(QSet<QUmlInteractionUse *> *) +Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QUmlInteractionUse) *) QT_END_HEADER |