Ignore:
Timestamp:
11/13/2008 11:26:52 AM (4 years ago)
Author:
lowjoel
Message:

Further extend the Application class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Installer/Bootstrapper/Bootstrapper.h

    r538 r539  
    2727#include "resource.h" 
    2828#undef Yield 
    29  
    30 class Application 
    31 { 
    32 public: 
    33     /// Gets the Singleton instance of the Application object. 
    34     static Application& Get(); 
    35  
    36     /// Processes messages in the message queue. 
    37     void Yield(); 
    38  
    39     /// Retrieves the MainWindow object representing the Application's top window. 
    40     class MainWindow& GetTopWindow(); 
    41  
    42 private: 
    43     Application(); 
    44 }; 
    4529 
    4630class MainWindow 
     
    8670}; 
    8771 
     72class Application 
     73{ 
     74public: 
     75    /// Gets the Singleton instance of the Application object. 
     76    static Application& Get(); 
     77 
     78    /// Retrieves the path to the executable file. 
     79    std::wstring GetPath(); 
     80 
     81    /// Processes messages in the message queue. 
     82    void Yield(); 
     83 
     84    /// Retrieves the MainWindow object representing the Application's top window. 
     85    MainWindow& GetTopWindow(); 
     86 
     87private: 
     88    /// Constructor. 
     89    Application(); 
     90 
     91private: 
     92    /// The Application main window. 
     93    MainWindow MainWin; 
     94}; 
     95 
    8896/// Formats the system error code using FormatMessage, returning the message as 
    8997/// a std::wstring. 
    9098std::wstring GetErrorMessage(DWORD lastError); 
    91  
    92 /// Retrieves the path to the executable file. 
    93 std::wstring GetApplicationPath(); 
    9499 
    95100/// Extracts the setup files to the users' temporary folder. 
Note: See TracChangeset for help on using the changeset viewer.