Home · Modules · All Classes · All Namespaces
Public Types | Public Member Functions | List of all members
Tp::Callback1< R, Arg1 > Class Template Reference

Callback with 1 argument. More...

#include <TelepathyQt/Callbacks>

Inherits Tp::BaseCallback.

Public Types

typedef R(* FunctionType) (Arg1)
 
typedef R ResultType
 

Public Member Functions

 Callback1 ()
 
template<class Functor >
 Callback1 (const Functor &functor)
 
ResultType operator() (Arg1 a1) const
 
- Public Member Functions inherited from Tp::BaseCallback
 BaseCallback ()
 
 BaseCallback (AbstractFunctorCaller *caller)
 
 BaseCallback (const BaseCallback &other)
 
virtual ~BaseCallback ()
 
bool isValid () const
 
BaseCallbackoperator= (const BaseCallback &other)
 

Additional Inherited Members

- Protected Attributes inherited from Tp::BaseCallback
AbstractFunctorCallercaller
 

Detailed Description

template<class R, class Arg1>
class Tp::Callback1< R, Arg1 >

Callback with 1 argument.

See Callbacks Usage

Member Typedef Documentation

◆ FunctionType

template<class R, class Arg1>
typedef R(* Tp::Callback1< R, Arg1 >::FunctionType) (Arg1)

◆ ResultType

template<class R, class Arg1>
typedef R Tp::Callback1< R, Arg1 >::ResultType

Constructor & Destructor Documentation

◆ Callback1() [1/2]

template<class R, class Arg1>
Tp::Callback1< R, Arg1 >::Callback1 ( )
inline

◆ Callback1() [2/2]

template<class R, class Arg1>
template<class Functor >
Tp::Callback1< R, Arg1 >::Callback1 ( const Functor &  functor)
inline

Member Function Documentation

◆ operator()()

template<class R, class Arg1>
ResultType Tp::Callback1< R, Arg1 >::operator() ( Arg1  a1) const
inline