1 /***************************************************************************
2 Copyright 2006 David Nolden <david.nolden.kdevelop@art-master.de>
3 ***************************************************************************/
5 /***************************************************************************
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************/
15 #include "lib/network/networkfwd.h"
16 #include "lib/network/sessioninterface.h"
17 #include "lib/network/user.h"
19 Teamwork::UserPointer
userFromSession( const Teamwork::SessionPointer
& session
) {
20 if( !session
) return 0;
21 return session
.unsafe() ->safeUser();
25 // kate: space-indent on; indent-width 2; tab-width 2; replace-tabs on