Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

urllauncher.h

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 
00008 //Added by Craig Bradney in August 2007
00009 //To be used for external browser URL launching
00010 
00011 #ifndef URLLAUNCHER_H
00012 #define URLLAUNCHER_H
00013 
00014 #include <QObject>
00015 #include <QString>
00016 #include <QUrl>
00017 #include <QWidget>
00018 #include "scribusapi.h"
00019 
00020 class SCRIBUS_API UrlLauncher : public QObject
00021 {
00022     Q_OBJECT;
00023     
00024     public:
00025         UrlLauncher();
00026         ~UrlLauncher();
00027 
00032         static UrlLauncher* instance();
00037         static void deleteInstance();
00038         
00039     public slots:
00040         void launchUrlExt(const QString& link, QWidget *parent=0);
00041         void launchUrlExt(const QUrl& link, QWidget *parent=0);
00042 
00043     private:
00050     static UrlLauncher* _instance;
00051 };
00052 
00053 #endif
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.