276
by Razzloss
Copied dcpp/ from 0705-branch |
1 |
/*
|
2 |
* Copyright (C) 2001-2008 Jacek Sieka, arnetheduck on gmail point com
|
|
3 |
*
|
|
4 |
* This program is free software; you can redistribute it and/or modify
|
|
5 |
* it under the terms of the GNU General Public License as published by
|
|
6 |
* the Free Software Foundation; either version 2 of the License, or
|
|
7 |
* (at your option) any later version.
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
17 |
*/
|
|
18 |
||
19 |
#ifndef DCPLUSPLUS_DCPP_FINISHED_MANAGER_LISTENER_H
|
|
20 |
#define DCPLUSPLUS_DCPP_FINISHED_MANAGER_LISTENER_H
|
|
21 |
||
22 |
#include "forward.h" |
|
23 |
||
24 |
namespace dcpp { |
|
25 |
||
26 |
class FinishedManagerListener { |
|
27 |
public: |
|
28 |
virtual ~FinishedManagerListener() { } |
|
29 |
template<int I> struct X { enum { TYPE = I }; }; |
|
30 |
||
31 |
typedef X<0> AddedFile; |
|
32 |
typedef X<1> AddedUser; |
|
33 |
typedef X<2> UpdatedFile; |
|
34 |
typedef X<3> UpdatedUser; |
|
35 |
typedef X<4> RemovedFile; |
|
36 |
typedef X<5> RemovedUser; |
|
37 |
typedef X<6> RemovedAll; |
|
38 |
||
39 |
virtual void on(AddedFile, bool, const string&, const FinishedFileItemPtr&) throw() { } |
|
40 |
virtual void on(AddedUser, bool, const UserPtr&, const FinishedUserItemPtr&) throw() { } |
|
41 |
virtual void on(UpdatedFile, bool, const string&) throw() { } |
|
42 |
virtual void on(UpdatedUser, bool, const UserPtr&) throw() { } |
|
43 |
virtual void on(RemovedFile, bool, const string&) throw() { } |
|
44 |
virtual void on(RemovedUser, bool, const UserPtr&) throw() { } |
|
45 |
virtual void on(RemovedAll, bool) throw() { } |
|
46 |
};
|
|
47 |
||
48 |
} // namespace dcpp |
|
49 |
||
50 |
#endif // !defined(DCPLUSPLUS_DCPP_FINISHED_MANAGER_LISTENER_H) |