• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
kopeteapplication.h
Go to the documentation of this file.
1 /*
2  kopete.h
3 
4  Kopete Instant Messenger Main Class
5 
6  Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
7 
8  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef KOPETEAPPLICATION_H
21 #define KOPETEAPPLICATION_H
22 
23 #include <qpointer.h>
24 
25 #include <kuniqueapplication.h>
26 
27 class KopeteWindow;
28 class QSessionManager;
29 
30 namespace Kopete
31 {
32  class MimeTypeHandler;
33  class FileEngineHandler;
34 }
35 
39 class KopeteApplication : public KUniqueApplication
40 {
41  Q_OBJECT
42 
43 public:
44  KopeteApplication();
45  ~KopeteApplication();
46 
51  bool isShuttingDown() const { return m_isShuttingDown; }
52 
53  virtual int newInstance();
54 
55 public slots:
62  void quitKopete();
63 
64  virtual void commitData( QSessionManager &sm );
68  void slotLoadPlugins();
69 
70 private slots:
74  void slotAllPluginsLoaded();
75 private:
76  // The main window might get deleted behind our back (W_DestructiveClose),
77  // so use a guarded pointer
78  QPointer<KopeteWindow> m_mainWindow;
79  bool m_isShuttingDown;
80  Kopete::MimeTypeHandler *m_emoticonHandler;
81  Kopete::FileEngineHandler *m_fileEngineHandler;
82 private:
83  void handleURLArgs();
84 };
85 
86 #endif
87 
88 // vim: set noet ts=4 sts=4 sw=4:
89 
QSessionManager
QPointer< KopeteWindow >
KopeteApplication::KopeteApplication
KopeteApplication()
Definition: kopeteapplication.cpp:55
KopeteApplication::slotLoadPlugins
void slotLoadPlugins()
Load all plugins.
Definition: kopeteapplication.cpp:132
KopeteApplication::newInstance
virtual int newInstance()
Definition: kopeteapplication.cpp:337
KopeteApplication::isShuttingDown
bool isShuttingDown() const
Method to return whether or not we're shutting down or not at this point.
Definition: kopeteapplication.h:51
KopeteApplication
Definition: kopeteapplication.h:39
KUniqueApplication
KopeteApplication::quitKopete
void quitKopete()
Quit Kopete, closing all the windows, which causes application shutdown This method marks Kopete as '...
Definition: kopeteapplication.cpp:364
KopeteWindow
Definition: kopetewindow.h:48
KopeteApplication::commitData
virtual void commitData(QSessionManager &sm)
Definition: kopeteapplication.cpp:390
KopeteApplication::~KopeteApplication
~KopeteApplication()
Definition: kopeteapplication.cpp:103
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal