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

Callback with 0 arguments. More...

#include <TelepathyQt/Callbacks>

Inherits Tp::BaseCallback.

Public Types

typedef R(* FunctionType) ()
 
typedef R ResultType
 

Public Member Functions

 Callback0 ()
 
template<class Functor >
 Callback0 (const Functor &functor)
 
ResultType operator() () 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 Tp::Callback0< R >

Callback with 0 arguments.

See Callbacks Usage

Member Typedef Documentation

◆ FunctionType

template<class R >
typedef R(* Tp::Callback0< R >::FunctionType) ()

◆ ResultType

template<class R >
typedef R Tp::Callback0< R >::ResultType

Constructor & Destructor Documentation

◆ Callback0() [1/2]

template<class R >
Tp::Callback0< R >::Callback0 ( )
inline

◆ Callback0() [2/2]

template<class R >
template<class Functor >
Tp::Callback0< R >::Callback0 ( const Functor &  functor)
inline

Member Function Documentation

◆ operator()()

template<class R >
ResultType Tp::Callback0< R >::operator() ( ) const
inline