knotes

KNotesIface.h
1/*******************************************************************
2 KNotesIface.h -- This file defines the DCOP interface for KNotes.
3
4 Copyright (C) 2000 by Adriaan de Groot
5 2001-2004 by Michael Brade <brade@kde.org>
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20*******************************************************************/
21
22#ifndef __KNotesIface_h__
23#define __KNotesIface_h__
24
25#include <tqstring.h>
26#include <tqmap.h>
27#include <tqdatetime.h>
28
29#include <dcopobject.h>
30
31
32class KNotesIface : virtual public DCOPObject
33{
34 K_DCOP
35k_dcop:
43 virtual TQString newNote( const TQString& name = TQString(),
44 const TQString& text = TQString() ) = 0;
45
54 virtual TQString newNoteFromClipboard( const TQString& name = TQString() ) = 0;
55
60 virtual ASYNC killNote( const TQString& noteId ) = 0;
61
67 virtual ASYNC killNote( const TQString& noteId, bool force ) = 0;
68
73 virtual TQMap<TQString,TQString> notes() const = 0;
74
80 virtual ASYNC setName( const TQString& noteId, const TQString& newName ) = 0;
81
87 virtual ASYNC setText( const TQString& noteId, const TQString& newText ) = 0;
88
94 virtual TQString name( const TQString& noteId ) const = 0;
95
101 virtual TQString text( const TQString& noteId ) const = 0;
102
107 virtual TQDateTime getLastModified( const TQString& noteId ) const = 0;
108};
109
110#endif