Permalink
Browse files

1.3 beta

  • Loading branch information...
1 parent 5ce92c0 commit 70c1e8e5bae373c4660e460703b577336caac8b0 Benjamin Dobell committed Jul 8, 2011
Showing with 522 additions and 248 deletions.
  1. +43 −0 heimdall-frontend/Source/Alerts.cpp
  2. +38 −0 heimdall-frontend/Source/Alerts.h
  3. +100 −37 heimdall-frontend/Source/FirmwareInfo.cpp
  4. +1 −1 heimdall-frontend/Source/FirmwareInfo.h
  5. +3 −2 heimdall-frontend/Source/PackageData.cpp
  6. +1 −1 heimdall-frontend/Source/PackageData.h
  7. +48 −29 heimdall-frontend/Source/Packaging.cpp
  8. +2 −2 heimdall-frontend/Source/Packaging.h
  9. +1 −1 heimdall-frontend/Source/aboutform.cpp
  10. +1 −1 heimdall-frontend/Source/aboutform.h
  11. +1 −1 heimdall-frontend/Source/main.cpp
  12. +68 −49 heimdall-frontend/Source/mainwindow.cpp
  13. +4 −1 heimdall-frontend/Source/mainwindow.h
  14. +2 −0 heimdall-frontend/heimdall-frontend.vcxproj
  15. +6 −0 heimdall-frontend/heimdall-frontend.vcxproj.filters
  16. +16 −1 heimdall-frontend/mainwindow.ui
  17. +1 −1 heimdall/source/BeginDumpPacket.h
  18. +85 −63 heimdall/source/BridgeManager.cpp
  19. +1 −1 heimdall/source/BridgeManager.h
  20. +1 −1 heimdall/source/ControlPacket.h
  21. +1 −1 heimdall/source/DeviceInfoPacket.h
  22. +1 −1 heimdall/source/DeviceInfoResponse.h
  23. +1 −1 heimdall/source/DumpPartFileTransferPacket.h
  24. +1 −1 heimdall/source/DumpPartPitFilePacket.h
  25. +1 −1 heimdall/source/DumpResponse.h
  26. +1 −1 heimdall/source/EndFileTransferPacket.h
  27. +1 −1 heimdall/source/EndModemFileTransferPacket.h
  28. +1 −1 heimdall/source/EndPhoneFileTransferPacket.h
  29. +1 −1 heimdall/source/EndSessionPacket.h
  30. +1 −1 heimdall/source/FileTransferPacket.h
  31. +1 −1 heimdall/source/FlashPartFileTransferPacket.h
  32. +1 −1 heimdall/source/FlashPartPitFilePacket.h
  33. +1 −1 heimdall/source/Heimdall.h
  34. +1 −1 heimdall/source/InboundPacket.h
  35. +55 −25 heimdall/source/Interface.cpp
  36. +11 −2 heimdall/source/Interface.h
  37. +1 −1 heimdall/source/OutboundPacket.h
  38. +1 −1 heimdall/source/Packet.h
  39. +1 −1 heimdall/source/PitFilePacket.h
  40. +1 −1 heimdall/source/PitFileResponse.h
  41. +1 −1 heimdall/source/ReceiveFilePartPacket.h
  42. +1 −1 heimdall/source/ResponsePacket.h
  43. +1 −1 heimdall/source/SendFilePartPacket.h
  44. +1 −1 heimdall/source/SendFilePartResponse.h
  45. +9 −5 heimdall/source/main.cpp
  46. +1 −1 libpit/Source/libpit.cpp
  47. +1 −1 libpit/Source/libpit.h
@@ -0,0 +1,43 @@
+/* Copyright (c) 2010-2011 Benjamin Dobell, Glass Echidna
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.*/
+
+// Qt
+#include <QMessageBox>
+
+// Heimdall Frontend
+#include "Alerts.h"
+
+using namespace HeimdallFrontend;
+
+void Alerts::DisplayError(const QString& errorMessage)
+{
+ QMessageBox messageBox;
+ messageBox.setText(errorMessage);
+ messageBox.setIcon(QMessageBox::Critical);
+ messageBox.exec();
+}
+
+void Alerts::DisplayWarning(const QString& warningMessage)
+{
+ QMessageBox messageBox;
+ messageBox.setText(warningMessage);
+ messageBox.setIcon(QMessageBox::Warning);
+ messageBox.exec();
+}
@@ -0,0 +1,38 @@
+/* Copyright (c) 2010-2011 Benjamin Dobell, Glass Echidna
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.*/
+
+#ifndef ALERTS_H
+#define ALERTS_H
+
+// Qt
+#include <QString>
+
+namespace HeimdallFrontend
+{
+ class Alerts
+ {
+ public:
+
+ static void DisplayError(const QString& errorMessage);
+ static void DisplayWarning(const QString& warningMessage);
+ };
+}
+
+#endif
Oops, something went wrong.

0 comments on commit 70c1e8e

Please sign in to comment.