summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qsignalevent.h
blob: 50ac38092480c6331b8f5f242a93461a972fa510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $TROLLTECH_DUAL_LICENSE$
**
****************************************************************************/

#ifndef QSIGNALEVENT_H
#define QSIGNALEVENT_H

#include <QtCore/qcoreevent.h>

#include <QtCore/qlist.h>
#include <QtCore/qvariant.h>

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Core)

class Q_CORE_EXPORT QSignalEvent : public QEvent
{
public:
    QSignalEvent(const QObject *sender, int signalIndex,
                 const QList<QVariant> &arguments);
    ~QSignalEvent();

    inline const QObject *sender() const { return m_sender; }
    inline int signalIndex() const { return m_signalIndex; }
    inline QList<QVariant> arguments() const { return m_arguments; }

private:
    const QObject *m_sender;
    int m_signalIndex;
    QList<QVariant> m_arguments;
};

QT_END_NAMESPACE

#endif