kmainwindowiface.h
/* This file is part of the KDE project
Copyright (C) 2001 Ian Reinhart Geiser <geiseri@yahoo.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library 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 GNU Library 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.
*/
#ifndef KWINDOW_INTERFACE_H
#define KWINDOW_INTERFACE_H
#include <dcopobject.h>
#include <qstringlist.h>
#include <qcstring.h>
#include <dcopref.h>
class KDCOPActionProxy;
class KDCOPPropertyProxy;
class KMainWindow;
class KDEUI_EXPORT KMainWindowInterface : virtual public DCOPObject
{
K_DCOP
public:
KMainWindowInterface( KMainWindow * mainWindow );
~KMainWindowInterface();
QCStringList functionsDynamic();
bool processDynamic(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData);
k_dcop:
QCStringList actions();
bool activateAction( QCString action);
bool disableAction( QCString action);
bool enableAction( QCString action);
bool actionIsEnabled( QCString action);
QCString actionToolTip( QCString action);
DCOPRef action( const QCString &name );
QMap<QCString,DCOPRef> actionMap();
int getWinID();
void grabWindowToClipBoard();
// bool isHidden();
void hide();
// bool isMaximized();
void maximize();
// bool isMinimized();
void minimize();
// int width();
// int height();
void resize(int newWidth, int newHeight);
// int Xpos();
// int Ypos();
void move(int newX, int newY);
void setGeometry(int newX, int newY, int newWidth, int newHeight);
void raise();
void lower();
void restore();
void show();
void close();
// QCStringList getQTProperties();
private:
KMainWindow *m_MainWindow;
KDCOPActionProxy *m_dcopActionProxy;
KDCOPPropertyProxy *m_dcopPropertyProxy;
};
#endif
KMainWindowInterface
DCOP interface to KMainWindow.
Definition: kmainwindowiface.h:40
DCOPRef
DCOPObject::processDynamic
virtual bool processDynamic(const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData)
KMainWindow
KDE top level main window
Definition: kmainwindow.h:98
KDCOPActionProxy
A proxy class publishing a DCOP interface for actions.
Definition: kdcopactionproxy.h:39
KDCOPPropertyProxy
DCOPObject
DCOPObject::functionsDynamic
virtual QCStringList functionsDynamic()

KDE Home | KDE Accessibility Home | Description of Access Keys