1 #include <BeidView/oslayer.h> 14 typedef NS_ENUM(NSInteger, eIDSource) {
21 typedef NS_ENUM(NSInteger, eIDLogLevel) {
28 typedef NS_ENUM(NSInteger, eIDPinOp) {
33 typedef NS_ENUM(NSInteger, eIDState) {
52 typedef NS_ENUM(NSInteger, eIDLanguage) {
60 typedef NS_ENUM(NSInteger, eIDResult) {
71 -(void)newsrc:(eIDSource)which;
72 -(void)newstringdata:(NSString*)data withLabel:(NSString*)label;
73 -(void)newbindata:(NSData*)data withLabel:(NSString*)label;
74 -(void)log:(NSString*)line withLevel:(eIDLogLevel)level;
75 -(void)newstate:(eIDState)state;
76 -(void)pinop_result:(eIDResult)result forOperation:(eIDPinOp)operation;
77 -(void)readersFound:(NSArray*)readers withSlotNumbers:(NSArray*)slots;
83 +(void)pinop:(eIDPinOp)which;
85 +(NSImage*)getPreview:(NSURL*)from;
86 +(void)setLang:(eIDLanguage)language;
91 +(void)deserialize:(NSURL*)from;
92 +(void)serialize:(NSURL*)to;
96 +(eIDResult)validateCert:(NSData*)certificate withCa:(NSData*)ca;
97 +(eIDResult)validateRrnCert:(NSData*)certificate;
98 +(void)selectReader:(NSInteger)readerNumber;
99 +(void)setReaderAuto:(BOOL)automatic;
100 +(NSString*)getCertDetail:(NSData*)certificate;
Reading certificates.
Definition: oslayer.h:70
The card has been read, we're now waiting for events to do something else.
Definition: oslayer.h:68
void closeFile()
calls eid_vwr_close_file()
Definition: oslayer-objc.m:139
Performing a PIN operation.
Definition: oslayer.h:71
the operation did not finish
Definition: oslayer.h:56
We don't have a reader (yet?)
Definition: oslayer.h:79
Definition: oslayer-objc.h:82
eIDLanguage lang()
calls eid_vwr_convert_get_lang()
Definition: oslayer-objc.m:162
NSData * xmlform()
calls eid_vwr_be_get_xmlform(), and converts the result to an NSData*
Definition: oslayer-objc.m:145
Saving data to a file.
Definition: oslayer.h:72
void poll()
calls eid_vwr_poll()
Definition: oslayer-objc.m:121
The callbacks have been defined.
Definition: oslayer.h:65
French.
Definition: oslayer.h:89
Card source. Close should not be allowed, everything else should be.
Definition: oslayer.h:31
perform a login and return whether the login was successful
Definition: oslayer.h:48
The data was determined to be invalid. That is, the card could be read, but signature validation fail...
Definition: oslayer.h:77
void mainloop()
calls eid_vwr_be_mainloop(), which does not return
Definition: oslayer-objc.m:118
Unknown. Used as initializer.
Definition: oslayer.h:32
Reading identity data.
Definition: oslayer.h:69
Dutch.
Definition: oslayer.h:90
change the PIN code of the card
Definition: oslayer.h:49
Ready to receive a token (eID card)
Definition: oslayer.h:66
An error occurred while dealing with the card.
Definition: oslayer.h:73
The library has been opened. Used as an initializer.
Definition: oslayer.h:64
English.
Definition: oslayer.h:88
We finished parsing the file.
Definition: oslayer.h:76
void setInvalid()
calls eid_vwr_be_set_invalid()
Definition: oslayer-objc.m:142
No language has yet been selected. Used as initializer.
Definition: oslayer.h:86
Protocol for implementing a UI.
Definition: oslayer-objc.h:69
No source. UI should be cleared.
Definition: oslayer.h:29
File source. "Print", "Validate" and "Close" operations should be allowed, PIN-related operations are...
Definition: oslayer.h:30
A token (eID card) has been found.
Definition: oslayer.h:67
We're reading from the file currently.
Definition: oslayer.h:75
the operation returned successfully
Definition: oslayer.h:55
void mainloopThread()
calls mainloop in a background thread.
Definition: oslayer-objc.m:124
German.
Definition: oslayer.h:87
We don't have a card, and we also don't have a file.
Definition: oslayer.h:78
operation failed
Definition: oslayer.h:54
We're dealing with files.
Definition: oslayer.h:74