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

Callback with 2 arguments. More...

#include <TelepathyQt/Callbacks>

Inherits Tp::BaseCallback.

Public Types

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

Public Member Functions

 Callback2 ()
 
template<class Functor >
 Callback2 (const Functor &functor)
 
ResultType operator() (Arg1 a1, Arg2 a2) 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 Arg2>
class Tp::Callback2< R, Arg1, Arg2 >

Callback with 2 arguments.

See Callbacks Usage

Member Typedef Documentation

◆ FunctionType

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

◆ ResultType

template<class R, class Arg1, class Arg2>
typedef R Tp::Callback2< R, Arg1, Arg2 >::ResultType

Constructor & Destructor Documentation

◆ Callback2() [1/2]

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

◆ Callback2() [2/2]

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

Member Function Documentation

◆ operator()()

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