From c120badcc57f597c8adb7c3d7872bc98f7521f44 Mon Sep 17 00:00:00 2001 From: Ragaeeb Haq <7464039+ragaeeb@users.noreply.github.com> Date: Tue, 9 Feb 2016 13:56:27 -0500 Subject: [PATCH] Adapt to canadainc lib changes. --- GoldenRetriever/precompiled.h | 3 +++ GoldenRetriever/src/applicationui.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/GoldenRetriever/precompiled.h b/GoldenRetriever/precompiled.h index 1495fa1..798c510 100644 --- a/GoldenRetriever/precompiled.h +++ b/GoldenRetriever/precompiled.h @@ -3,3 +3,6 @@ #include #include + +#include +#include diff --git a/GoldenRetriever/src/applicationui.cpp b/GoldenRetriever/src/applicationui.cpp index efa4a75..f9b8f1f 100644 --- a/GoldenRetriever/src/applicationui.cpp +++ b/GoldenRetriever/src/applicationui.cpp @@ -14,6 +14,7 @@ #include "LogMonitor.h" #include "QueryId.h" #include "PimUtil.h" +#include "SharedConstants.h" #include @@ -47,11 +48,11 @@ QVariantList validatePermissions() result << generate( QObject::tr("Warning: It seems like the app does not have access to access your device's location. This permission is needed to detect your GPS location so that the 'location' command can be processed. If you keep this permission off, the app may not work properly."), "images/toast/no_location_permission.png" ); } - if ( !PimUtil::hasCalendarAccess() ) { + if (NO_CALENDAR_ACCESS) { result << generate( QObject::tr("Warning: It seems like the app does not have access to your Calendar. This permission is needed for the app to respond to 'calendar' commands if you want to ever check your device's local calendar remotely. If you leave this permission off, some features may not work properly."), "images/toast/no_calendar_permission.png" ); } - if ( !PimUtil::hasContactsAccess() ) { + if (NO_CONTACTS_ACCESS) { result << generate( QObject::tr("Warning: It seems like the app does not have access to your Contacts. This permission is needed for the app to respond to 'contact' commands if you want to ever fetch your address book information remotely. If you leave this permission off, some features may not work properly."), "images/toast/no_contacts_permission.png" ); }