summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-07 23:37:50 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-07 23:37:50 +0300
commit725c8a943ca6ce33a6abefe08003d619de312ddc (patch)
tree9fb38e38771416936e59bd5f51627367e7b8c149 /src/gui/charselectdialog.h
parent2a4649185cda0788444452168ddcf665af7f17b5 (diff)
downloadplus-725c8a943ca6ce33a6abefe08003d619de312ddc.tar.gz
plus-725c8a943ca6ce33a6abefe08003d619de312ddc.tar.bz2
plus-725c8a943ca6ce33a6abefe08003d619de312ddc.tar.xz
plus-725c8a943ca6ce33a6abefe08003d619de312ddc.zip
Ask account password before deleting char.
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r--src/gui/charselectdialog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h
index 9db688800..bcbbb7679 100644
--- a/src/gui/charselectdialog.h
+++ b/src/gui/charselectdialog.h
@@ -38,6 +38,7 @@ class CharacterDisplay;
class LocalPlayer;
class LoginData;
class PlayerBox;
+class TextDialog;
namespace Net
{
@@ -84,6 +85,8 @@ class CharSelectDialog : public Window, public gcn::ActionListener,
bool selectByName(const std::string &name,
SelectAction action = Focus);
+ void askPasswordForDeletion(int index);
+
private:
void attemptCharacterDelete(int index);
void attemptCharacterSelect(int index);
@@ -109,6 +112,8 @@ class CharSelectDialog : public Window, public gcn::ActionListener,
LoginData *mLoginData;
Net::CharHandler *mCharHandler;
+ TextDialog *mDeleteDialog;
+ int mDeleteIndex;
};
#endif