Logo Search packages:      
Sourcecode: qt4-x11 version File versions

template<typename T1 = void, typename T2 = void, typename T3 = void, typename T4 = void, typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void>
template<int Index>
Type QDBusPendingReply< T1, T2, T3, T4, T5, T6, T7, T8 >::argumentAt (  )  const [inline]

Returns the argument at position Index (which is a template parameter) cast to type Type. This function uses template code to determine the proper Type type, according to the type list used in the construction of this object.

Note that, if the reply hasn't arrived, this function causes the calling thread to block until the reply is processed.

Definition at line 163 of file qdbuspendingreply.h.

References QDBusPendingReply< T1, T2, T3, T4, T5, T6, T7, T8 >::count().

    {
        // static assert?
        Q_ASSERT_X(Index < count() && Index >= 0, "QDBusPendingReply::argumentAt",
                   "Index out of bounds");
        typedef typename Select<Index>::Type ResultType;
        return qdbus_cast<ResultType>(argumentAt(Index));
    }


Generated by  Doxygen 1.6.0   Back to index