Inheritance: Object, IDisposable
Example #1
0
        public QDBusReply(QDBusMessage reply)
        {
            m_error = new QDBusError(reply);

            QVariant variant;

            if (typeof(T) == typeof(QVariant))
            {
                variant = QVariant.FromValue <QDBusVariant>(null);
            }
            else
            {
                variant = QVariant.FromValue <T>(default(T));
            }

            qyoto_qdbus_reply_fill((IntPtr)GCHandle.Alloc(reply), (IntPtr)GCHandle.Alloc(m_error),
                                   (IntPtr)GCHandle.Alloc(variant));

            if (!m_error.IsValid())
            {
                // qyoto_qdbus_reply_fill extracts the QVariant from the QDBusVariant for us
                if (typeof(T) == typeof(QVariant))
                {
                    m_data = (T)(object)variant;
                }
                else
                {
                    m_data = variant.Value <T>();
                }
            }
        }
Example #2
0
        public QDBusReply(QDBusMessage reply)
        {
            m_error = new QDBusError(reply);
            QVariant variant = QVariant.FromValue <T>(default(T));

            qyoto_qdbus_reply_fill((IntPtr)GCHandle.Alloc(reply), (IntPtr)GCHandle.Alloc(m_error),
                                   (IntPtr)GCHandle.Alloc(variant));
            if (!m_error.IsValid())
            {
                m_data = variant.Value <T>();
            }
        }
Example #3
0
File: Qt.cs Project: KDE/qyoto
 public static void QDBusReplyFill(QDBusMessage reply, QDBusError error, QVariant data)
 {
     staticInterceptor.Invoke("qDBusReplyFill###", "qDBusReplyFill(const QDBusMessage&, QDBusError&, QVariant&)", typeof(void), typeof(QDBusMessage), reply, typeof(QDBusError), error, typeof(QVariant), data);
 }
 public static IQDBusPendingCall FromError(QDBusError error)
 {
     return (IQDBusPendingCall) staticInterceptor.Invoke("fromError#", "fromError(const QDBusError&)", typeof(IQDBusPendingCall), typeof(QDBusError), error);
 }
Example #5
0
 public QDBusError(QDBusError other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QDBusError#", "QDBusError(const QDBusError&)", typeof(void), typeof(QDBusError), other);
 }
Example #6
0
 public static string ErrorString(QDBusError.ErrorType error)
 {
     return (string) staticInterceptor.Invoke("errorString$", "errorString(QDBusError::ErrorType)", typeof(string), typeof(QDBusError.ErrorType), error);
 }
Example #7
0
 public QDBusError(QDBusError other)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QDBusError#", "QDBusError(const QDBusError&)", typeof(void), typeof(QDBusError), other);
 }
Example #8
0
 public QDBusError(QDBusError.ErrorType error, string message)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QDBusError$$", "QDBusError(QDBusError::ErrorType, const QString&)", typeof(void), typeof(QDBusError.ErrorType), error, typeof(string), message);
 }
Example #9
0
 public QDBusReply(QDBusError dbusError)
 {
     m_error = dbusError;
 }
Example #10
0
 public QDBusMessage CreateErrorReply(QDBusError err)
 {
     return((QDBusMessage)interceptor.Invoke("createErrorReply#", "createErrorReply(const QDBusError&) const", typeof(QDBusMessage), typeof(QDBusError), err));
 }
Example #11
0
 public static QDBusMessage CreateError(QDBusError err)
 {
     return((QDBusMessage)staticInterceptor.Invoke("createError#", "createError(const QDBusError&)", typeof(QDBusMessage), typeof(QDBusError), err));
 }
Example #12
0
 public void SendErrorReply(QDBusError.ErrorType type)
 {
     interceptor.Invoke("sendErrorReply$", "sendErrorReply(QDBusError::ErrorType) const", typeof(void), typeof(QDBusError.ErrorType), type);
 }
Example #13
0
 public void SendErrorReply(QDBusError.ErrorType type, string msg)
 {
     interceptor.Invoke("sendErrorReply$$", "sendErrorReply(QDBusError::ErrorType, const QString&) const", typeof(void), typeof(QDBusError.ErrorType), type, typeof(string), msg);
 }