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 ***************************************************************************/
14 #ifndef KDEVTEAMWORK_USER_H
15 #define KDEVTEAMWORK_USER_H
20 #include <kiconloader.h>
22 #include "lib/network/networkfwd.h"
23 #include "teamworkfwd.h"
24 #include "lib/network/user.h"
26 using namespace Teamwork
;
30 class IdentificationMessage
;
33 class KDevTeamworkUser
: public QObject
, public User
{
36 KDevTeamworkUser( const User
* user
= 0 );
38 KDevTeamworkUser( IdentificationMessage
* msg
);
40 virtual void setSession( const SessionPointer
& sess
);
42 QIcon
icon( KIconLoader::Group
= KIconLoader::Small
);
46 template <class Archive
>
47 void serialize( Archive
& arch
, const uint
/*version*/ ) {
48 arch
& boost::serialization::base_object
<User
>( *this );
52 ///All signals in this class should be connected using queued connections, because they get called from other threads
53 void userStateChanged( KDevTeamworkUserPointer user
);
56 typedef SafeSharedPtr
<KDevTeamworkUser
, BoostSerialization
> KDevTeamworkUserPointer
;
60 // kate: space-indent on; indent-width 2; tab-width 2; replace-tabs on