aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/authentication_controller.h
blob: db875ead016ec77b46b2b0fd0794adddf2915b65 (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
/*
 *  AuthenticationController.h
 *  SecondLife
 *
 *  Created by RMS on 7/1/08.
 *
 */

#ifndef PL_AuthenticationController_H
#define PL_AuthenticationController_H

#include "llfloater.h"

class AuthenticationController
{
public:
	AuthenticationController(const std::string& tg, void (*cb)(void*));
	virtual ~AuthenticationController();
	
	// line editor callbacks
	static void onCommitUser(LLUICtrl* ctrl, void* userdata);
	static void onCommitPassword(LLUICtrl* ctrl, void* userdata);
	static void onCommitRemember(LLUICtrl* ctrl, void* userdata);
	// button callbacks
	static void onAccept(void* userdata);
	static void onCancel(void* userdata);
	static void onClickRegister(void* userdata);
	
	void retrieveStoredAccountData(void* userdata);
	static std::string getTargetGrid();
	
private:
	static std::string target_grid;
	static std::string username;
	static std::string password;
	static BOOL store_pw;
	void (*callback)(void*);
};


#endif // PL_AuthenticationController_H