summaryrefslogtreecommitdiff
authorzecke <zecke>2004-11-03 22:44:14 (UTC)
committer zecke <zecke>2004-11-03 22:44:14 (UTC)
commit3c446259f59c03abe2a64b2eba9a65cb11a81a1b (patch) (side-by-side diff)
tree7f04d222710b745da710b36097f269bdc7fd1b9d
parent9a753348fd31dfb5309408c469cce8ea5eadf8ea (diff)
downloadopie-3c446259f59c03abe2a64b2eba9a65cb11a81a1b.zip
opie-3c446259f59c03abe2a64b2eba9a65cb11a81a1b.tar.gz
opie-3c446259f59c03abe2a64b2eba9a65cb11a81a1b.tar.bz2
Provide a QPEApplication compatible constructor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.cpp8
-rw-r--r--libopie2/opiecore/oapplication.h6
2 files changed, 13 insertions, 1 deletions
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index ac7cd5a..0ce61d8 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -48,25 +48,31 @@ namespace Core {
namespace Internal {
class OApplicationPrivate
{
public:
OApplicationPrivate() {};
~OApplicationPrivate() {};
};
}
/**************************************************************************************************
* OApplication
**************************************************************************************************/
-
+OApplication::OApplication( int& argc, char** argv, Type type )
+ :QPEApplication( argc, argv, type ),
+ _appname( QString::null ),
+ _config( 0 )
+{
+ init();
+}
OApplication::OApplication( int& argc, char** argv, const QCString& rAppName )
:QPEApplication( argc, argv ),
_appname( rAppName ),
_config( 0 )
{
init();
}
OApplication::~OApplication()
{
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index 337fe5e..d34e6b1 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -40,24 +40,30 @@ namespace Core {
namespace Internal {
class OApplicationPrivate;
} // private class
class OConfig;
class OApplication : public QPEApplication
{
Q_OBJECT
public:
+
+ /**
+ * Constructor. Compatible to QPEApplication
+ */
+ OApplication( int& argc, char** argv, Type type=GuiClient);
+
/**
* Constructor. Parses command-line arguments and sets the window caption.
*
* @param rAppName application name. Will be used for finding the
* associated message, icon and configuration files
*
*/
OApplication( int& argc, char** argv, const QCString& rAppName );
/**
* Destructor. Destroys the application object and its children.
*/
virtual ~OApplication();