/*************************************************************************** * newownerwindow.h * * Fri Jul 15 02:14:47 2005 * Copyright 2005 User * Email ****************************************************************************/ #ifndef _NEWOWNERWINDOW_H #define _NEWOWNERWINDOW_H #include "icons.h" #include "basicwindow.h" #include "processingani.h" #include "utilities.h" #include "imownerdaemon.h" #include "gettext.h" enum newOwnerActions { NEWOWNER_ADD, NEWOWNER_CLOSE }; class newOwnerWindow: public basicWindow { public: newOwnerWindow(gchar* _titleString); ~newOwnerWindow(); private: GtkWidget *notebook, *forwardButton, *backButton, *cancelButton, *registerUserButton, *useExistingUserButton, *protocolsList, *userIDEntry, *userPasswordEntry, *pwdConfirmEntry, *regHintLabel, *verifyImage, *verifyEntry, *pwdErrorEntry, *failedLabel, *newIDLabel, *oneAccountAlertLabel; gint currentPage; gchar *titleString; GString *oneAlertMessage; processingAni *waitAni; IMOwnerDaemon *newOwner; IMPluginDaemon *lastDaemon; GtkWidget *createWindowContent(); void destroyWindowContent(); GtkWidget *createTitlePage(); GtkWidget *createDataPage(); GtkWidget *createVerifyPage(); GtkWidget *createSuccessPage(); GtkWidget *createFailedPage(); GtkWidget *createButtonbar(); void startProcessing(); void stopProcessing(); static gboolean cb_eventCallback(userEventType type, gint command, gint lastResult, gpointer info, newOwnerWindow* self); // callbacks static void cb_forwardButtonClicked(newOwnerWindow* self); static void cb_backButtonClicked(newOwnerWindow* self); static void cb_userActionButtonClicked(newOwnerWindow* self); static void cb_closeButtonClicked(newOwnerWindow* self); static void cb_editInfoButtonClicked(newOwnerWindow* self); static void cb_editGroupsButtonClicked(newOwnerWindow* self); }; #endif /* _NEWOWNERWINDOW_H */