kate
katedocmanageriface.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 Ian Reinhart Geiser <geiseri@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef _katedocmanager_Iface_h_ 00020 #define _katedocmanager_Iface_h_ 00021 00022 #include <dcopobject.h> 00023 #include <dcopref.h> 00024 00025 #include <kurl.h> 00026 00027 class KateDocManager; 00028 00029 class KateDocManagerDCOPIface : public DCOPObject 00030 { 00031 K_DCOP 00032 00033 public: 00034 KateDocManagerDCOPIface (KateDocManager *dm); 00035 00036 k_dcop: 00037 DCOPRef document (uint n); 00038 00039 DCOPRef activeDocument (); 00040 00041 uint activeDocumentNumber (); 00042 00043 DCOPRef documentWithID (uint id); 00044 00045 int findDocument (KURL url); 00046 00047 bool isOpen (KURL url); 00048 00049 uint documents (); 00050 00051 DCOPRef openURL (KURL url, QString encoding); 00052 00053 bool closeDocument (uint n); 00054 00055 bool closeDocumentWithID (uint id); 00056 00057 bool closeAllDocuments (); 00058 00059 private: 00060 KateDocManager *m_dm; 00061 }; 00062 #endif