mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
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:
@@ -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].
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user