Version: 9.15.0
QtxWebBrowser::Downloader Class Reference

A dialog box that is used to process file links. More...

#include <QtxWebBrowser.h>

Inheritance diagram for QtxWebBrowser::Downloader:
Inheritance graph

Public Member Functions

 Downloader (const QString &, int=mOpen, const QString &=QString(), QWidget *=0)
 Constructor. More...
 
 ~Downloader ()
 Destructor. More...
 
int action () const
 Get action selected by the user. More...
 
bool isRepeatAction () const
 Get "repeat action for all such files" flag status. More...
 
QString program () const
 Get program to be used to open chosen file. More...
 

Private Types

enum  { mOpen , mSave }
 

Private Slots

void setAction (int)
 Set current action. More...
 
void browse ()
 Browse program to be used to open the file. More...
 

Private Attributes

QString myProgram
 
QLabelmyFileName
 
QButtonGroup * myAction
 
QPushButton * myBrowse
 
QCheckBox * myRepeat
 

Friends

class QtxWebBrowser
 

Detailed Description

A dialog box that is used to process file links.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
mOpen 
mSave 

Constructor & Destructor Documentation

◆ Downloader()

QtxWebBrowser::Downloader::Downloader ( const QString &  fileName,
int  action = mOpen,
const QString &  program = QString(),
QWidget parent = 0 
)

Constructor.

Parameters
fileNamename of the file being opened
actiondefault action to be used for the file
programdefault program to be used to open the file
parentparent widget

References action(), browse(), mOpen, mSave, myAction, myBrowse, myFileName, myRepeat, and setAction().

◆ ~Downloader()

QtxWebBrowser::Downloader::~Downloader ( )

Destructor.

Member Function Documentation

◆ action()

int QtxWebBrowser::Downloader::action ( ) const

Get action selected by the user.

Returns
action being selected:
  • 0: open file
  • 1: save file

◆ browse

void QtxWebBrowser::Downloader::browse ( )
privateslot

Browse program to be used to open the file.

◆ isRepeatAction()

bool QtxWebBrowser::Downloader::isRepeatAction ( ) const

Get "repeat action for all such files" flag status.

Returns
true if chosen action should be automatically done for all files of given type or false otherwise

◆ program()

QString QtxWebBrowser::Downloader::program ( ) const

Get program to be used to open chosen file.

Returns
path to the program

◆ setAction

void QtxWebBrowser::Downloader::setAction ( int  action)
privateslot

Set current action.

Parameters
actionaction to be done for the file:
  • 0: open file
  • 1: save file

Friends And Related Function Documentation

◆ QtxWebBrowser

friend class QtxWebBrowser
friend

Member Data Documentation

◆ myAction

QButtonGroup* QtxWebBrowser::Downloader::myAction
private

◆ myBrowse

QPushButton* QtxWebBrowser::Downloader::myBrowse
private

◆ myFileName

QLabel* QtxWebBrowser::Downloader::myFileName
private

◆ myProgram

QString QtxWebBrowser::Downloader::myProgram
private

◆ myRepeat

QCheckBox* QtxWebBrowser::Downloader::myRepeat
private

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