00001 /* This file is part of the KDE project 00002 Copyright (c) 2001 Davud Faure <faure@kde.org> 00003 00004 $Id: KoMainWindowIface.h 539508 2006-05-10 20:01:40Z mlaurent $ 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 #ifndef __KoMainWindowIface_h__ 00022 #define __KoMainWindowIface_h__ 00023 00024 #include <QMap> 00025 00026 #include <dcopobject.h> 00027 #include <dcopref.h> 00028 00029 class KDCOPActionProxy; 00030 class KoMainWindow; 00031 00032 class KoMainWindowIface : public DCOPObject 00033 { 00034 K_DCOP 00035 public: 00036 KoMainWindowIface( KoMainWindow *mainwindow ); 00037 virtual ~KoMainWindowIface(); 00038 00039 k_dcop: 00040 DCOPRef action( const DCOPCString &name ); 00041 DCOPCStringList actions(); 00042 QMap<DCOPCString,DCOPRef> actionMap(); 00043 ASYNC print(bool quick); 00044 00045 protected: 00046 KoMainWindow *m_pMainWindow; 00047 KDCOPActionProxy *m_actionProxy; 00048 }; 00049 00050 #endif