diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-12-28 20:34:31 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-12-28 20:34:31 +0000 |
commit | 578c3d4a75046cc06dfa247b437f04fc542c36a9 (patch) | |
tree | d6cc8b80c086fdf1b13f5469b66bbaf341abc9e5 /protocols/Skype/src/skype_proto.h | |
parent | 121f8a3e433af878f1168d28035ad4fd17b7aa0b (diff) |
- added password changing
git-svn-id: http://svn.miranda-ng.org/main/trunk@2875 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index be81d8fd60..e081bf4874 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -145,6 +145,40 @@ struct InviteChatParam { ::mir_free(id); }
};
+struct PasswordRequestBoxParam
+{
+ char *login;
+ char *password;
+ bool rememberPassword;
+ bool showRememberPasswordBox;
+
+ PasswordRequestBoxParam(const char *login, bool showRememberPasswordBox = true, bool rememberPassword = false) :
+ login(::mir_strdup(login)),
+ password(NULL),
+ rememberPassword(rememberPassword),
+ showRememberPasswordBox(showRememberPasswordBox) { }
+
+ ~PasswordRequestBoxParam()
+ {
+ if (login) ::mir_free(login);
+ if (password) ::mir_free(password);
+ }
+};
+
+struct PasswordChangeBoxParam
+{
+ char *password;
+ char *password2;
+
+ PasswordChangeBoxParam() { }
+
+ ~PasswordChangeBoxParam()
+ {
+ if (password) ::mir_free(password);
+ if (password2) ::mir_free(password2);
+ }
+};
+
struct CSkypeProto : public PROTO_INTERFACE, public MZeroedObject
{
public:
@@ -249,14 +283,16 @@ protected: char *login;
char *password;
bool rememberPassword;
- void RequestPassword();
+ bool RequestPassword(PasswordRequestBoxParam ¶m);
+ bool ChangePassword(PasswordChangeBoxParam ¶m);
HANDLE signin_lock;
- bool SignIn(bool isReadPassword = true);
+ bool SignIn(int status);
void __cdecl SignInAsync(void*);
static wchar_t* LogoutReasons[];
static wchar_t* ValidationReasons[];
+ static wchar_t* PasswordChangeReasons[];
static LanguagesListEntry languages[223];
// messages
@@ -353,7 +389,8 @@ protected: int SkypeToMirandaLoginError(CAccount::LOGOUTREASON logoutReason);
- static void ShowNotification(const wchar_t *message, int flags = 0, const char *nick = NULL);
+ static void ShowNotification(const wchar_t *message, int flags = 0, HANDLE hContact = NULL);
+ static void ShowNotification(const wchar_t *caption, const wchar_t *message, int flags = 0, HANDLE hContact = NULL);
static char *RemoveHtml(char *data);
@@ -398,7 +435,7 @@ protected: INT_PTR __cdecl SetMyAvatar(WPARAM, LPARAM);
// icons
- static _tag_iconList iconList[];
+ static _tag_iconList IconList[];
// menu
HGENMENU m_hMenuRoot;
@@ -456,7 +493,8 @@ protected: // dialog procs
static INT_PTR CALLBACK SkypeMainOptionsProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
- static INT_PTR CALLBACK SkypePasswordProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK SkypePasswordRequestProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK SkypePasswordChangeProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR CALLBACK SkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR CALLBACK OwnSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR CALLBACK InviteToChatProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
|