blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDCredentialsProfile.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2018 BlackBerry Limited. All rights reserved.
00003  */
00004 
00005 #ifndef GD_CREDENTIALS_PROFILE_H
00006 #define GD_CREDENTIALS_PROFILE_H
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 #ifndef GD_C_API
00013 #   if !defined(_WIN32)
00014 #       define GD_C_API __attribute__((visibility("default")))
00015 #   else
00016 #       define GD_C_API
00017 #   endif
00018 #endif
00019     
00020 #include "GDCommon.h"
00021 
00022 struct GDError;
00023 
00034 typedef enum {
00046     GDCredentialsProfileStateImportDue,
00047     
00062     GDCredentialsProfileStateImportNow,
00063     
00067     GDCredentialsProfileStateImported,
00068     
00076     GDCredentialsProfileStateModified,
00077               
00085     GDCredentialsProfileStateRenewalDue,
00086     
00095     GDCredentialsProfileStateDeleted
00096 } GD_C_API GDCredentialsProfileState;
00097 
00107 struct GD_C_API GDCredentialsProfile {
00119     char* id;
00120 
00126     GDCredentialsProfileState state;
00127     
00139     char* type;
00140     
00146     char* name;
00147     
00153     bool required;
00154     
00167     char* providerSettings;
00168 };
00169 
00177 struct GD_C_API GDCredentialsProfileEvent {
00184     struct GDCredentialsProfile* profile;
00185 };
00186 
00215 typedef void (*GDCredentialsProfileEventCb)(const struct GDCredentialsProfileEvent event, void* appData);
00216     
00240 GD_C_API void GDCredentialsProfile_register(GDCredentialsProfileEventCb cb, void* appData);
00241 
00291 GD_C_API bool GDCredentialsProfile_list(size_t* profileCount,
00292                                         struct GDCredentialsProfile** profiles,
00293                                         struct GDError* error);
00294 
00304 GD_C_API void GDCredentialsProfile_free(struct GDCredentialsProfile* profiles,
00305                                         size_t profileCount);
00306 
00315 GD_C_API void GDCredentialsProfile_unregister();
00316 
00322 #ifdef __cplusplus
00323 }
00324 #endif
00325 
00326 #endif