Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/interaction.h

Issue 5992177905696768: Issue #1186 - Rename symbols defined in 'installer-lib' (Closed)
Patch Set: fixed issues; rebased; new fixes from rebase Created June 19, 2015, 4:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « installer/src/installer-lib/installer-lib.h ('k') | installer/src/installer-lib/process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: installer/src/installer-lib/interaction.h
===================================================================
--- a/installer/src/installer-lib/interaction.h
+++ b/installer/src/installer-lib/interaction.h
@@ -2,99 +2,99 @@
* \file interaction.h User interaction classes. Message boxes and translations.
*/
-#ifndef INTERACTION_H
-#define INTERACTION_H
-
-#include <string>
-
-#include "session.h"
-
-#include <Windows.h>
-#include <Msi.h>
-#include <MsiQuery.h>
-
-/**
- * A modal dialog box as displayable from within a custom action.
- *
- * The only fully user interface element that the Windows Installer supports for use within custom actions is a small set of modal dialog boxes.
- * The Windows Installer provides the call MsiProcessMessage, overloaded by a set of message type constants.
- * This class represents those messages with user-provided messages; these ultimately call MessageBox.
- *
+#ifndef INTERACTION_H
+#define INTERACTION_H
+
+#include <string>
+
+#include "session.h"
+
+#include <Windows.h>
+#include <Msi.h>
+#include <MsiQuery.h>
+
+/**
+ * A modal dialog box as displayable from within a custom action.
+ *
+ * The only fully user interface element that the Windows Installer supports for use within custom actions is a small set of modal dialog boxes.
+ * The Windows Installer provides the call MsiProcessMessage, overloaded by a set of message type constants.
+ * This class represents those messages with user-provided messages; these ultimately call MessageBox.
+ *
* \sa
* * 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 InstallerMessageBox
- : public Message
-{
-public:
- enum class Box : long
- {
- defaultBox = 0,
- error = INSTALLMESSAGE::INSTALLMESSAGE_ERROR,
- warning = INSTALLMESSAGE::INSTALLMESSAGE_WARNING,
- user = INSTALLMESSAGE::INSTALLMESSAGE_USER
- } ;
-
- enum class ButtonSet : long
- {
- defaultButtonSet = 0,
- ok = MB_OK,
- okCancel = MB_OKCANCEL,
- abortRetryIgnore = MB_ABORTRETRYIGNORE,
- yesNoCancel = MB_YESNOCANCEL,
- yesNo = MB_YESNO,
- retryCancel = MB_RETRYCANCEL
- } ;
-
- enum class DefaultButton : long
- {
- defaultButton = 0, ///< use the default button
- one = MB_DEFBUTTON1,
- two = MB_DEFBUTTON2,
- three = MB_DEFBUTTON3
- } ;
-
- enum class Icon : long
- {
- 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
- } ;
-
- /**
- * Ordinary constructor, wide string
- */
- InstallerMessageBox(
- std::wstring message,
- Box box = Box::user,
- ButtonSet buttonset = ButtonSet::defaultButtonSet,
- DefaultButton defaultButton = DefaultButton::defaultButton,
- Icon icon = Icon::defaultIcon
- ) ;
-
- /**
- * Ordinary constructor, regular string
- */
- InstallerMessageBox(
- std::string message,
- Box box = Box::user,
- ButtonSet buttonset = ButtonSet::defaultButtonSet,
- DefaultButton defaultButton = DefaultButton::defaultButton,
- Icon icon = Icon::defaultIcon
- ) ;
-} ;
-
-/**
- * Error for any non-handled return value from Session.write_message().
- */
-struct UnexpectedReturnValueFromMessageBox
- : std::logic_error
-{
- UnexpectedReturnValueFromMessageBox()
- : std::logic_error( "Unexpected return value from message box." )
- {}
-} ;
-
-#endif
+ */
+class InstallerMessageBox
+ : public Message
+{
+public:
+ enum class Box : long
+ {
+ defaultBox = 0,
+ error = INSTALLMESSAGE::INSTALLMESSAGE_ERROR,
+ warning = INSTALLMESSAGE::INSTALLMESSAGE_WARNING,
+ user = INSTALLMESSAGE::INSTALLMESSAGE_USER
+ } ;
+
+ enum class ButtonSet : long
+ {
+ defaultButtonSet = 0,
+ ok = MB_OK,
+ okCancel = MB_OKCANCEL,
+ abortRetryIgnore = MB_ABORTRETRYIGNORE,
+ yesNoCancel = MB_YESNOCANCEL,
+ yesNo = MB_YESNO,
+ retryCancel = MB_RETRYCANCEL
+ } ;
+
+ enum class DefaultButton : long
+ {
+ defaultButton = 0, ///< use the default button
+ one = MB_DEFBUTTON1,
+ two = MB_DEFBUTTON2,
+ three = MB_DEFBUTTON3
+ } ;
+
+ enum class Icon : long
+ {
+ 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
+ } ;
+
+ /**
+ * Ordinary constructor, wide string
+ */
+ InstallerMessageBox(
+ std::wstring message,
+ Box box = Box::user,
+ ButtonSet buttonset = ButtonSet::defaultButtonSet,
+ DefaultButton defaultButton = DefaultButton::defaultButton,
+ Icon icon = Icon::defaultIcon
+ ) ;
+
+ /**
+ * Ordinary constructor, regular string
+ */
+ InstallerMessageBox(
+ std::string message,
+ Box box = Box::user,
+ ButtonSet buttonset = ButtonSet::defaultButtonSet,
+ DefaultButton defaultButton = DefaultButton::defaultButton,
+ Icon icon = Icon::defaultIcon
+ ) ;
+} ;
+
+/**
+ * Error for any non-handled return value from Session.WriteMessage().
+ */
+struct UnexpectedReturnValueFromMessageBox
+ : std::logic_error
+{
+ UnexpectedReturnValueFromMessageBox()
+ : std::logic_error( "Unexpected return value from message box." )
+ {}
+} ;
+
+#endif
« no previous file with comments | « installer/src/installer-lib/installer-lib.h ('k') | installer/src/installer-lib/process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld