Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Member Enumeration Documentation

anonymous enum
private
Enumerator
mOpen 
mSave 

Constructor & Destructor Documentation

QtxWebBrowser::Downloader::Downloader ( const QString &  fileName,
int  action = mOpen,
const QString &  program = QString(),
QWidget parent = 0 
)
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 browse(), mOpen, mSave, myAction, myBrowse, myFileName, myRepeat, and setAction().

QtxWebBrowser::Downloader::~Downloader ( )

Member Function Documentation

int QtxWebBrowser::Downloader::action ( ) const
Returns
action being selected:
  • 0: open file
  • 1: save file
void QtxWebBrowser::Downloader::browse ( )
privateslot
bool QtxWebBrowser::Downloader::isRepeatAction ( ) const
Returns
true if chosen action should be automatically done for all files of given type or false otherwise
QString QtxWebBrowser::Downloader::program ( ) const
Returns
path to the program
void QtxWebBrowser::Downloader::setAction ( int  action)
privateslot
Parameters
actionaction to be done for the file:
  • 0: open file
  • 1: save file

Friends And Related Function Documentation

friend class QtxWebBrowser
friend

Member Data Documentation

QButtonGroup* QtxWebBrowser::Downloader::myAction
private
QPushButton* QtxWebBrowser::Downloader::myBrowse
private
QLabel* QtxWebBrowser::Downloader::myFileName
private
QString QtxWebBrowser::Downloader::myProgram
private
QCheckBox* QtxWebBrowser::Downloader::myRepeat
private

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