diff options
Diffstat (limited to 'kshowmail/uniqueapp.h')
-rw-r--r-- | kshowmail/uniqueapp.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/kshowmail/uniqueapp.h b/kshowmail/uniqueapp.h new file mode 100644 index 0000000..4c19dab --- /dev/null +++ b/kshowmail/uniqueapp.h @@ -0,0 +1,65 @@ +/*************************************************************************** + uniqueapp.h - description + ------------------- + begin : Mon Nov 19 2001 + copyright : (C) 2001 by Eggert Ehmke + email : eggert.ehmke@berlin.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef UNIQUEAPP_H +#define UNIQUEAPP_H + +//KDE-Header +#include <kwin.h> +#include <kcmdlineargs.h> +#include <kuniqueapplication.h> + +//KShowMail-Header +#include "kshowmail.h" +#include "constants.h" + +using namespace Constants; + +/** + * @short Creates a unique instance of kshowmail + * @author Eggert Ehmke + */ + +class UniqueApp : public KUniqueApplication { + +public: + + /** + * Constructor + */ + UniqueApp(); + + /** + * Destructor + */ + ~UniqueApp(); + + /** + * overloaded method of KUniqueApplication. Creates a new instance of kshowmail. + */ + virtual int newInstance (); + + +private: + + /** + * the kshowmail instance + */ + KShowMailApp* m_pApp; +}; + +#endif |