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.

57 lines
1.7KB

  1. /*
  2. This file is part of KAddressbook.
  3. Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (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. As a special exception, permission is given to link this program
  16. with any edition of TQt, and distribute the resulting executable,
  17. without including the source code for TQt in the source distribution.
  18. */
  19. #ifndef KADDRESSBOOKSERVICE_H
  20. #define KADDRESSBOOKSERVICE_H
  21. #include <libtdepim/interfaces/AddressBookServiceIface.h>
  22. namespace KAB {
  23. class Core;
  24. }
  25. class KAddressBookService : virtual public KPIM::AddressBookServiceIface
  26. {
  27. public:
  28. KAddressBookService( KAB::Core *core );
  29. /**
  30. This method will add a vcard to the address book.
  31. @param vCard The vCard in string representation.
  32. */
  33. void importVCardFromData( const TQString& vCard );
  34. /**
  35. This method will add a vcard to the address book.
  36. @param url The url where the vcard is located.
  37. */
  38. void importVCard( const KURL& url );
  39. private:
  40. KAB::Core *mCore;
  41. };
  42. #endif