AccountDialog.h 773 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
  3. * Distributed under the terms of the MIT License.
  4. */
  5. #ifndef _ACCOUNT_DIALOG_H
  6. #define _ACCOUNT_DIALOG_H
  7. #include <String.h>
  8. #include <Window.h>
  9. class BTextControl;
  10. class ProtocolSettings;
  11. class TemplateView;
  12. const uint32 kAccountAdded = 'acad';
  13. const uint32 kAccountRenamed = 'acrd';
  14. class AccountDialog : public BWindow {
  15. public:
  16. AccountDialog(const char* title,
  17. ProtocolSettings* settings,
  18. const char* account = NULL);
  19. void SetTarget(BHandler* target);
  20. virtual void MessageReceived(BMessage* msg);
  21. private:
  22. ProtocolSettings* fSettings;
  23. BString fAccount;
  24. TemplateView* fTop;
  25. BTextControl* fAccountName;
  26. BHandler* fTarget;
  27. };
  28. #endif // _ACCOUNT_DIALOG_H