summaryrefslogtreecommitdiff
path: root/indra/newview/lleventpoll.h
blob: c5024b2b95f16939a834652e9e889c33c03b002a (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
/** 
 * @file lleventpoll.h
 * @brief LLEvDescription of the LLEventPoll class.
 *
 * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLEVENTPOLL_H
#define LL_LLEVENTPOLL_H

class LLHTTPNode;


class LLEventPoll
	///< implements the viewer side of server-to-viewer pushed events.
{
public:
	LLEventPoll(const std::string& pollURL, const LLHTTPNode& treeRoot);
		/**< Start polling the URL.
		
			 The object will automatically responde to events
			 by calling handlers in the tree.
		*/
		

	virtual ~LLEventPoll();
		///< will stop polling, cancelling any poll in progress.


private:
	class Impl;
	Impl& impl;
};


#endif // LL_LLEVENTPOLL_H