TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
2.2 KiB

  1. /*******************************************************************
  2. KNotes -- Notes for the KDE project
  3. Copyright (c) 2003, Daniel Martin <daniel.martin@pirack.com>
  4. 2004, 2006, Michael Brade <brade@kde.org>
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. In addition, as a special exception, the copyright holders give
  17. permission to link the code of this program with any edition of
  18. the TQt library by Trolltech AS, Norway (or with modified versions
  19. of TQt that use the same license as TQt), and distribute linked
  20. combinations including the two. You must obey the GNU General
  21. Public License in all respects for all of the code used other than
  22. TQt. If you modify this file, you may extend this exception to
  23. your version of the file, but you are not obligated to do so. If
  24. you do not wish to do so, delete this exception statement from
  25. your version.
  26. *******************************************************************/
  27. #ifndef KNOTESNETSEND_H
  28. #define KNOTESNETSEND_H
  29. #include <tqcstring.h>
  30. #include <kbufferedsocket.h>
  31. #include <tdesocketaddress.h>
  32. using namespace KNetwork;
  33. class KNotesNetworkSender : public KNetwork::TDEBufferedSocket
  34. {
  35. Q_OBJECT
  36. public:
  37. KNotesNetworkSender( const TQString& host, int port );
  38. void setSenderId( const TQString& sender );
  39. void setNote( const TQString& title, const TQString& text );
  40. protected slots:
  41. void slotConnected( const KResolverEntry& );
  42. void slotError( int );
  43. void slotClosed();
  44. void slotReadyWrite();
  45. private:
  46. TQCString m_note;
  47. TQCString m_title;
  48. TQCString m_sender;
  49. uint m_index;
  50. };
  51. #endif