summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/icbmparamstask.h
blob: be20fa15793054efc6508c32929167f301d8f4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
	Kopete Oscar Protocol
	icbmparamstask.h - Get the ICBM parameters
	
	Copyright (c) 2004 Matt Rogers <mattr@kde.org>
	
	Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
	
	*************************************************************************
	*                                                                       *
	* This library is free software; you can redistribute it and/or         *
	* modify it under the terms of the GNU Lesser General Public            *
	* License as published by the Free Software Foundation; either          *
	* version 2 of the License, or (at your option) any later version.      *
	*                                                                       *
	*************************************************************************
*/
#ifndef ICBMPARAMSTASK_H
#define ICBMPARAMSTASK_H

#include <task.h>

/**
Get the parameters we need to follow for instant messages
 
@author Matt Rogers
*/
class ICBMParamsTask : public Task
{
public:
	ICBMParamsTask( Task* parent );
	~ICBMParamsTask();

	bool forMe( const Transfer* transfer ) const;
	bool take( Transfer* transfer );

	/**
	 * Handle the ICBM Parameters we get back from SNAC 0x04, 0x05
	 */
	void handleICBMParameters();
	
	/**
	 * Send the message parameters we want back to the server. Only
	 * appears to occur during login
	 * @param channel the channel to set up
	 */
	void sendMessageParams( int channel );

protected:
	void onGo();

};

#endif