Qyoto.QDBusError.IsValid C# (CSharp) Method

IsValid() public method

public IsValid ( ) : bool
return bool
        public bool IsValid()
        {
            return (bool) interceptor.Invoke("isValid", "isValid() const", typeof(bool));
        }

Usage Example

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>();
                }
            }
        }
All Usage Examples Of Qyoto.QDBusError::IsValid