Don't keep compiling/run if something failed.
[kdevelopdvcssupport.git] / plugins / teamwork / kdevteamwork_user.h
blob9c86cad45429f29a6277225c3e15325c9e106093
1 /***************************************************************************
2 Copyright 2006 David Nolden <david.nolden.kdevelop@art-master.de>
3 ***************************************************************************/
5 /***************************************************************************
6 * *
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. *
11 * *
12 ***************************************************************************/
14 #ifndef KDEVTEAMWORK_USER_H
15 #define KDEVTEAMWORK_USER_H
17 #include <QObject>
18 #include <QMetaType>
19 #include <QString>
20 #include <kiconloader.h>
22 #include "lib/network/networkfwd.h"
23 #include "teamworkfwd.h"
24 #include "lib/network/user.h"
26 using namespace Teamwork;
27 class QIcon;
29 namespace Teamwork {
30 class IdentificationMessage;
33 class KDevTeamworkUser : public QObject, public User {
34 Q_OBJECT
35 public:
36 KDevTeamworkUser( const User* user = 0 );
38 KDevTeamworkUser( IdentificationMessage* msg );
40 virtual void setSession( const SessionPointer& sess );
42 QIcon icon( KIconLoader::Group = KIconLoader::Small );
44 QString toolTip();
46 template <class Archive>
47 void serialize( Archive& arch, const uint /*version*/ ) {
48 arch & boost::serialization::base_object<User>( *this );
51 signals:
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;
58 #endif
60 // kate: space-indent on; indent-width 2; tab-width 2; replace-tabs on