rtm.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright 2009 Andrew Stromme <astromme@chatonka.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU Library General Public License as
  6. * published by the Free Software Foundation; either version 2, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this program; if not, write to the
  16. * Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef RTM_H
  20. #define RTM_H
  21. #include "rtm_export.h"
  22. #include <QHash>
  23. #include <QString>
  24. class QString;
  25. namespace RTM {
  26. enum State { Mutable, Hashed, RequestSent, RequestReceived };
  27. enum Permissions { None , Read, Write, Delete };
  28. const QString baseAuthUrl = "https://www.rememberthemilk.com/services/auth/?";
  29. const QString baseMethodUrl = "http://api.rememberthemilk.com/services/rest/?";
  30. /** Timlines are unsigned longs that map to a "session" in which
  31. actions are undoable */
  32. typedef unsigned long Timeline;
  33. typedef qulonglong ListId;
  34. typedef qulonglong TaskId;
  35. typedef qulonglong NoteId;
  36. typedef qulonglong TaskSeriesId;
  37. typedef qulonglong ListSeriesId;
  38. typedef qulonglong LocationId;
  39. typedef QString Tag;
  40. class List;
  41. class Request;
  42. class Auth;
  43. class Task;
  44. class Note;
  45. class Location
  46. {
  47. };
  48. class Contact
  49. {
  50. };
  51. class Group
  52. {
  53. };
  54. }
  55. #endif