Monotone-Parent: 9df3ab1d4e8ca89e2cd5da61c1d1c9b6d4f6ff8e

Monotone-Revision: e81a19428dc35c851d16d525d7d41f645b87aa93

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-08T18:54:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-08-08 18:54:02 +00:00
parent f7dc6f2ee3
commit 580e0027f9
3 changed files with 21 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
2011-08-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContext.m (-activeUser): new helper method.
* OpenChange/MAPIStoreSOGo.m (sogo_backend_init): invoke
-activateApplication on the new app in order to make it accessible
via [WOApplication application].

View File

@@ -41,6 +41,7 @@
@class SOGoFolder;
@class SOGoMAPIFSFolder;
@class SOGoObject;
@class SOGoUser;
@class MAPIStoreAuthenticator;
@class MAPIStoreAttachment;
@@ -86,6 +87,8 @@
- (void) setupRequest;
- (void) tearDownRequest;
- (SOGoUser *) activeUser;
// - (id) lookupObject: (NSString *) objectURLString;
/* backend methods */

View File

@@ -273,6 +273,22 @@ _prepareContextClass (Class contextClass,
[MAPIApp setMAPIStoreContext: nil];
}
- (SOGoUser *) activeUser
{
SOGoUser *activeUser;
NSString *userName;
if (connInfo && connInfo->username)
{
userName = [NSString stringWithUTF8String: connInfo->username];
activeUser = [SOGoUser userWithLogin: userName];
}
else
activeUser = nil;
return activeUser;
}
// - (void) logRestriction: (struct mapi_SRestriction *) res
// withState: (MAPIRestrictionState) state
// {