knotes

KNotesIface.h
00001 /*******************************************************************
00002  KNotesIface.h  --  This file defines the DCOP interface for KNotes.
00003 
00004  Copyright (C) 2000 by Adriaan de Groot
00005                2001-2004 by Michael Brade <brade@kde.org>
00006 
00007  This program is free software; you can redistribute it and/or
00008  modify it under the terms of the GNU General Public License
00009  as published by the Free Software Foundation; either version 2
00010  of the License, or (at your option) any later version.
00011 
00012  This program is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU General Public License for more details.
00016 
00017  You should have received a copy of the GNU General Public License
00018  along with this program; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 *******************************************************************/
00021 
00022 #ifndef __KNotesIface_h__
00023 #define __KNotesIface_h__
00024 
00025 #include <tqstring.h>
00026 #include <tqmap.h>
00027 #include <tqdatetime.h>
00028 
00029 #include <dcopobject.h>
00030 
00031 
00032 class KNotesIface : virtual public DCOPObject
00033 {
00034     K_DCOP
00035 k_dcop:
00043     virtual TQString newNote( const TQString& name = TQString(),
00044                              const TQString& text = TQString() ) = 0;
00045 
00054     virtual TQString newNoteFromClipboard( const TQString& name = TQString() ) = 0;
00055 
00060     virtual ASYNC killNote( const TQString& noteId ) = 0;
00061 
00067     virtual ASYNC killNote( const TQString& noteId, bool force ) = 0;
00068 
00073     virtual TQMap<TQString,TQString> notes() const = 0;
00074 
00080     virtual ASYNC setName( const TQString& noteId, const TQString& newName ) = 0;
00081 
00087     virtual ASYNC setText( const TQString& noteId, const TQString& newText ) = 0;
00088 
00094     virtual TQString name( const TQString& noteId ) const = 0;
00095 
00101     virtual TQString text( const TQString& noteId ) const = 0;
00102 
00107     virtual TQDateTime getLastModified( const TQString& noteId ) const = 0;
00108 };
00109 
00110 #endif