32 #ifndef __KNotesAppIface_h__
33 #define __KNotesAppIface_h__
37 #include <tqdatetime.h>
39 #include <dcopobject.h>
42 class KNotesAppIface : virtual public DCOPObject
53 virtual TQString newNote( const TQString& name = TQString(),
54 const TQString& text = TQString() ) = 0;
64 virtual TQString newNoteFromClipboard( const TQString& name = TQString() ) = 0;
70 virtual ASYNC killNote( const TQString& noteId ) = 0;
77 virtual ASYNC killNote( const TQString& noteId, bool force ) = 0;
83 virtual TQMap<TQString,TQString> notes() const = 0;
90 virtual ASYNC setName( const TQString& noteId, const TQString& newName ) = 0;
97 virtual ASYNC setText( const TQString& noteId, const TQString& newText ) = 0;
104 virtual TQString fgColor( const TQString& noteId ) const = 0;
111 virtual TQString bgColor( const TQString& noteId ) const = 0;
119 virtual ASYNC setColor( const TQString& noteId, const TQString& fgColor,
120 const TQString& bgColor ) = 0;
127 virtual TQString name( const TQString& noteId ) const = 0;
134 virtual TQString text( const TQString& noteId ) const = 0;
143 virtual ASYNC showNote( const TQString& noteId ) const = 0;
149 virtual ASYNC hideNote( const TQString& noteId ) const = 0;
154 virtual ASYNC showAllNotes() const = 0;
159 virtual ASYNC hideAllNotes() const = 0;
166 virtual int width( const TQString& noteId ) const = 0;
173 virtual int height( const TQString& noteId ) const = 0;
181 virtual ASYNC move( const TQString& noteId, int x, int y ) const = 0;
189 virtual ASYNC resize( const TQString& noteId, int width, int height ) const = 0;
195 virtual ASYNC sync( const TQString& app ) = 0;
204 virtual bool isNew( const TQString& app, const TQString& noteId ) const = 0;
213 virtual bool isModified( const TQString& app, const TQString& noteId ) const = 0;
219 virtual TQDateTime getLastModified( const TQString& noteId ) const = 0;
|