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.
 
 
 
 
 
 

47 lines
1.4 KiB

  1. /*******************************************************************
  2. KNotes -- Notes for the KDE project
  3. Copyright (c) 2002-2004, Michael Brade <brade@kde.org>
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. *******************************************************************/
  16. #ifndef KNOTESLEGACY_H
  17. #define KNOTESLEGACY_H
  18. #include <tqstring.h>
  19. #include <tqdir.h>
  20. namespace KCal {
  21. class CalendarLocal;
  22. class Journal;
  23. }
  24. /**
  25. * This converts and removes old note storage and config files.
  26. */
  27. class KNotesLegacy
  28. {
  29. public:
  30. static void cleanUp();
  31. static bool convert( KCal::CalendarLocal *calendar );
  32. private:
  33. static bool convertKNotes1Config( KCal::Journal *j, TQDir& dir, const TQString& file );
  34. static bool convertKNotes2Config( KCal::Journal *j, TQDir& dir, const TQString& file );
  35. };
  36. #endif