From 121b26f5eef583a95b268a391790d8de0d404f0e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 21 Nov 2024 22:46:15 +0900 Subject: Rename KAppDCOPInterface to TDEAppDCOPInterface Signed-off-by: Michele Calgaro --- tdecore/tdeappdcopinterface.cpp | 70 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 tdecore/tdeappdcopinterface.cpp (limited to 'tdecore/tdeappdcopinterface.cpp') diff --git a/tdecore/tdeappdcopinterface.cpp b/tdecore/tdeappdcopinterface.cpp new file mode 100644 index 000000000..c67d1931d --- /dev/null +++ b/tdecore/tdeappdcopinterface.cpp @@ -0,0 +1,70 @@ +/* This file is part of the KDE project + Copyright (C) 2001 Ian Reinhart Geiser + + This program is free software; you can redistribute it and/or + modify it under the terms of the Lesser GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the Lesser GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "tdeappdcopinterface.h" +#include +#include +#include +#include + + +TDEAppDCOPInterface::TDEAppDCOPInterface(TDEApplication * theKApp) + : DCOPObject( "MainApplication-Interface") +{ + m_TDEApplication = theKApp; +} + +TDEAppDCOPInterface::~TDEAppDCOPInterface() +{ +} + +void TDEAppDCOPInterface::disableSessionManagement() +{ + +} + +TQCString TDEAppDCOPInterface::startupId() +{ + return ""; +} + +TQCString TDEAppDCOPInterface::caption() +{ + return ""; +} + +void TDEAppDCOPInterface::quit() +{ + m_TDEApplication->quit(); +} + +void TDEAppDCOPInterface::updateUserTimestamp( ulong time ) +{ + m_TDEApplication->updateUserTimestamp( time ); +} + +void TDEAppDCOPInterface::reparseConfiguration() +{ + TDEGlobal::config()->reparseConfiguration(); +} + +void TDEAppDCOPInterface::sendFakeKey( unsigned int keyCode) { + m_TDEApplication->broadcastKeyCode(keyCode); +} + -- cgit v1.2.1