processquit.h

00001 /*
00002  * Copyright (C) 2006  Justin Karneges
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301  USA
00018  *
00019  */
00020 
00021 #ifndef PROCESSQUIT_H
00022 #define PROCESSQUIT_H
00023 
00024 #ifdef NO_IRISNET
00025 # include <QtCore>
00026 # define IRISNET_EXPORT
00027 #else
00028 # include "irisnetglobal.h"
00029 #endif
00030 
00031 #ifndef NO_IRISNET
00032 namespace XMPP {
00033 #endif
00034 
00051 class IRISNET_EXPORT ProcessQuit : public QObject
00052 {
00053         Q_OBJECT
00054 public:
00062         static ProcessQuit *instance();
00063 
00071         static void reset();
00072 
00082         static void cleanup();
00083 
00084 signals:
00094         void quit();
00095 
00096 private:
00097         class Private;
00098         friend class Private;
00099         Private *d;
00100 
00101         ProcessQuit(QObject *parent = 0);
00102         ~ProcessQuit();
00103 };
00104 
00105 #ifndef NO_IRISNET
00106 }
00107 #endif
00108 
00109 #endif

Generated on Sun Mar 18 17:58:50 2007 for IrisNet by  doxygen 1.4.6