Skip to content

Commit

Permalink
Adapt to canadainc lib changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ragaeeb committed Feb 9, 2016
1 parent 0901184 commit c120bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions GoldenRetriever/precompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
#include <bb/cascades/QmlDocument>

#include <bb/platform/NotificationGlobalSettings>

#include <bb/pim/calendar/CalendarService>
#include <bb/pim/calendar/CalendarSettings>
5 changes: 3 additions & 2 deletions GoldenRetriever/src/applicationui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "LogMonitor.h"
#include "QueryId.h"
#include "PimUtil.h"
#include "SharedConstants.h"

#include <bb/device/HardwareInfo>

Expand Down Expand Up @@ -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" );
}

Expand Down

0 comments on commit c120bad

Please sign in to comment.