MythTV  master
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
DialogCompletionEvent Class Reference

Event dispatched from MythUI modal dialogs to a listening class containing a result of some form. More...

#include <mythdialogbox.h>

Inheritance diagram for DialogCompletionEvent:
Inheritance graph
Collaboration diagram for DialogCompletionEvent:
Collaboration graph

Public Member Functions

 DialogCompletionEvent (QString id, int result, QString text, QVariant data)
 ~DialogCompletionEvent () override
QString GetId ()
int GetResult () const
QString GetResultText ()
QVariant GetData ()

Static Public Attributes

static const Type kEventType

Private Attributes

QString m_id
int m_result
QString m_resultText
QVariant m_resultData

Detailed Description

Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.

The result may be in the format of an int, text or a void pointer dependant on the dialog type and information it is conveying.

Definition at line 41 of file mythdialogbox.h.

Constructor & Destructor Documentation

◆ DialogCompletionEvent()

DialogCompletionEvent::DialogCompletionEvent ( QString  id,
int  result,
QString  text,
QVariant  data 

Definition at line 44 of file mythdialogbox.h.

◆ ~DialogCompletionEvent()

DialogCompletionEvent::~DialogCompletionEvent ( )

Definition at line 32 of file mythdialogbox.cpp.

Member Function Documentation

◆ GetId()

QString DialogCompletionEvent::GetId ( )

◆ GetResult()

int DialogCompletionEvent::GetResult ( ) const

Definition at line 53 of file mythdialogbox.h.

Referenced by Ripper::customEvent(), and MythUIComboBoxSetting::resultEdit().

◆ GetResultText()

QString DialogCompletionEvent::GetResultText ( )

◆ GetData()

QVariant DialogCompletionEvent::GetData ( )

Definition at line 55 of file mythdialogbox.h.

Referenced by TV::customEvent(), and MythUIComboBoxSetting::resultEdit().

Member Data Documentation

◆ kEventType

const QEvent::Type DialogCompletionEvent::kEventType

◆ m_id

QString DialogCompletionEvent::m_id

Definition at line 60 of file mythdialogbox.h.

◆ m_result

int DialogCompletionEvent::m_result

Definition at line 61 of file mythdialogbox.h.

◆ m_resultText

QString DialogCompletionEvent::m_resultText

Definition at line 62 of file mythdialogbox.h.

◆ m_resultData

QVariant DialogCompletionEvent::m_resultData

Definition at line 63 of file mythdialogbox.h.

The documentation for this class was generated from the following files: