TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
  3. Copyright (c) 2004 Frans Englich <frans.englich@telia.com>
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef __tdecmshell_h__
  18. #define __tdecmshell_h__
  19. #include <dcopobject.h>
  20. #include <tdeapplication.h>
  21. #include <kcmultidialog.h>
  22. /**
  23. * The TDEApplication instance for tdecmshell.
  24. */
  25. class KCMShell : public TDEApplication
  26. {
  27. Q_OBJECT
  28. public:
  29. /**
  30. * Sets m_dcopName basically to @p dcopName,
  31. * and then registers with DCOP.
  32. *
  33. * @param dcopName name to set the DCOP name to
  34. * @param rootMode true if the tdecmshell is embedding
  35. */
  36. void setDCOPName(const TQCString &dcopName, bool rootMode );
  37. /**
  38. * Waits until the last instance of tdecmshell with the same
  39. * module as this one exits, and then exits.
  40. */
  41. void waitForExit();
  42. /**
  43. * @return true if the shell is running
  44. */
  45. bool isRunning();
  46. private slots:
  47. /**
  48. */
  49. void appExit( const TQCString &appId );
  50. private:
  51. /**
  52. * The DCOP name which actually is registered.
  53. * For example "tdecmshell_mouse".
  54. */
  55. TQCString m_dcopName;
  56. };
  57. /**
  58. * Essentially a plain KCMultiDialog, but has the additional functionality
  59. * of allowing it to be told to request windows focus.
  60. *
  61. * @author Waldo Bastian <bastian@kde.org>
  62. */
  63. class KCMShellMultiDialog : public KCMultiDialog, public DCOPObject
  64. {
  65. Q_OBJECT
  66. K_DCOP
  67. public:
  68. /**
  69. */
  70. KCMShellMultiDialog( int dialogFace, const TQString& caption,
  71. TQWidget *parent=0, const char *name=0, bool modal=false);
  72. k_dcop:
  73. /**
  74. */
  75. virtual void activate( TQCString asn_id );
  76. };
  77. // vim: sw=4 et sts=4
  78. #endif //__tdecmshell_h__