Index: installer/src/installer-lib/interaction.h |
=================================================================== |
--- a/installer/src/installer-lib/interaction.h |
+++ b/installer/src/installer-lib/interaction.h |
@@ -24,79 +24,79 @@ |
* * MSDN [MsiProcessMessage function](http://msdn.microsoft.com/en-us/library/windows/desktop/aa370354%28v=vs.85%29.aspx) |
* * MSDN [Sending Messages to Windows Installer Using MsiProcessMessage](http://msdn.microsoft.com/en-us/library/windows/desktop/aa371614%28v=vs.85%29.aspx) |
*/ |
-class Installer_Message_Box |
+class InstallerMessageBox |
: public Message |
{ |
public: |
typedef enum |
{ |
- default_box = 0, |
- error_box = INSTALLMESSAGE::INSTALLMESSAGE_ERROR, |
- warning_box = INSTALLMESSAGE::INSTALLMESSAGE_WARNING, |
- user_box = INSTALLMESSAGE::INSTALLMESSAGE_USER |
+ defaultBox = 0, |
Felix Dahlke
2014/10/15 02:46:57
Enum values should be all uppercase and with under
Eric
2014/10/15 15:30:44
I will first point out that our coding style docum
|
+ errorBox = INSTALLMESSAGE::INSTALLMESSAGE_ERROR, |
+ warningBox = INSTALLMESSAGE::INSTALLMESSAGE_WARNING, |
+ userBox = INSTALLMESSAGE::INSTALLMESSAGE_USER |
} |
box_type ; |
typedef enum |
{ |
- default_buttonset = 0, |
+ defaultButtonset = 0, |
ok = MB_OK, |
- ok_cancel = MB_OKCANCEL, |
- abort_retry_ignore = MB_ABORTRETRYIGNORE, |
- yes_no_cancel = MB_YESNOCANCEL, |
- yes_no = MB_YESNO, |
- retry_cancel = MB_RETRYCANCEL |
+ okCancel = MB_OKCANCEL, |
+ abortRetryIgnore = MB_ABORTRETRYIGNORE, |
+ yesNoCancel = MB_YESNOCANCEL, |
+ yesNo = MB_YESNO, |
+ retryCancel = MB_RETRYCANCEL |
} |
buttonset_type ; |
typedef enum |
{ |
- default_default_button = 0, ///< use the default button |
- default_button_one = MB_DEFBUTTON1, |
- default_button_two = MB_DEFBUTTON2, |
- default_button_three = MB_DEFBUTTON3 |
+ defaultDefaultButton = 0, ///< use the default button |
+ defaultButtonOne = MB_DEFBUTTON1, |
+ defaultButtonTwo = MB_DEFBUTTON2, |
+ defaultButtonThree = MB_DEFBUTTON3 |
} |
default_button_type ; |
typedef enum |
{ |
- default_icon = 0, ///< use the default icon associated with the box_type |
- warning_icon = MB_ICONWARNING, ///< exclamation point |
- information_icon = MB_ICONINFORMATION, ///< lowercase letter "i" in a circle |
- error_icon = MB_ICONERROR ///< stop sign |
+ defaultIcon = 0, ///< use the default icon associated with the box_type |
+ warningIcon = MB_ICONWARNING, ///< exclamation point |
+ informationIcon = MB_ICONINFORMATION, ///< lowercase letter "i" in a circle |
+ errorIcon = MB_ICONERROR ///< stop sign |
} |
icon_type ; |
/** |
* Ordinary constructor, wide string |
*/ |
- Installer_Message_Box( |
+ InstallerMessageBox( |
std::wstring message, |
- box_type box = box_type::user_box, |
- buttonset_type buttonset = buttonset_type::default_buttonset, |
- default_button_type default_button = default_button_type::default_default_button, |
- icon_type icon = icon_type::default_icon |
+ box_type box = box_type::userBox, |
+ buttonset_type buttonset = buttonset_type::defaultButtonset, |
+ default_button_type default_button = default_button_type::defaultDefaultButton, |
+ icon_type icon = icon_type::defaultIcon |
) ; |
/** |
* Ordinary constructor, regular string |
*/ |
- Installer_Message_Box( |
+ InstallerMessageBox( |
std::string message, |
- box_type box = box_type::user_box, |
- buttonset_type buttonset = buttonset_type::default_buttonset, |
- default_button_type default_button = default_button_type::default_default_button, |
- icon_type icon = icon_type::default_icon |
+ box_type box = box_type::userBox, |
+ buttonset_type buttonset = buttonset_type::defaultButtonset, |
+ default_button_type default_button = default_button_type::defaultDefaultButton, |
+ icon_type icon = icon_type::defaultIcon |
) ; |
} ; |
/** |
* Error for any non-handled return value from Session.write_message(). |
*/ |
-struct unexpected_return_value_from_message_box |
+struct UnexpectedReturnValueFromMessageBox |
: std::logic_error |
{ |
- unexpected_return_value_from_message_box() |
+ UnexpectedReturnValueFromMessageBox() |
: std::logic_error( "Unexpected return value from message box." ) |
{} |
} ; |