nfcsettings.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. * This component and the accompanying materials are made available
  5. * under the terms of "Eclipse Public License v1.0"
  6. * which accompanies this distribution, and is available
  7. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. *
  9. * Initial Contributors:
  10. * Nokia Corporation - initial contribution.
  11. *
  12. * Contributors:
  13. *
  14. * Description: Part of Qt NFC Setting sample application.
  15. */
  16. #include "nfcsettings.h"
  17. #if defined(Q_OS_SYMBIAN)
  18. #include "nfcsettings_symbian_p.h"
  19. #else
  20. #include "nfcsettings_p.h"
  21. #endif
  22. NfcSettings::NfcSettings(QObject *parent) :
  23. QObject(parent),
  24. d_ptr(0)
  25. {
  26. d_ptr = new NfcSettingsPrivate(this);
  27. }
  28. NfcSettings::~NfcSettings()
  29. {
  30. delete d_ptr;
  31. }
  32. NfcSettings::NfcFeature NfcSettings::nfcFeature() const
  33. {
  34. return d_ptr->nfcFeature();
  35. }
  36. NfcSettings::NfcMode NfcSettings::nfcMode() const
  37. {
  38. return d_ptr->nfcMode();
  39. }
  40. NfcSettings::NfcError NfcSettings::nfcError() const
  41. {
  42. return d_ptr->nfcError();
  43. }
  44. void NfcSettings::reset()
  45. {
  46. d_ptr->reset();
  47. }