]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Common/UIxPageFrame.m
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@103 d1b88da0-ebda-0310-925b-ed51d...
[scalable-opengroupware.org] / SOGo / UI / Common / UIxPageFrame.m
1 // $Id$
2
3 #include <NGObjWeb/SoComponent.h>
4 #include <NGObjWeb/SoHTTPAuthenticator.h>
5 #include <NGObjWeb/SoUser.h>
6
7
8 @interface UIxPageFrame : SoComponent
9 {
10   NSString *title;
11 }
12
13 @end
14
15 #include "common.h"
16
17 @implementation UIxPageFrame
18
19 - (void)dealloc {
20   [self->title release];
21   [super dealloc];
22 }
23
24 /* accessors */
25
26 - (void)setTitle:(NSString *)_value {
27   ASSIGN(self->title, _value);
28 }
29
30 - (NSString *)title {
31   return self->title;
32 }
33
34 - (NSString *)login {
35     WOContext *ctx;
36     SoUser *user;
37     
38     ctx = [self context];
39     user = [[[self clientObject] authenticatorInContext:ctx]
40                                  userInContext:ctx];
41     return [user login];
42 }
43
44 @end /* UIxPageFrame */