Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions
AEMozillaSuiteHandler Class Reference

#include <nsAEMozillaSuiteHandler.h>

List of all members.

Public Types

enum  { kSuiteSignature = 'MOZZ', kDoJavaScriptEvent = 'jscr' }

Public Member Functions

 AEMozillaSuiteHandler ()
 ~AEMozillaSuiteHandler ()
void HandleMozillaSuiteEvent (const AppleEvent *appleEvent, AppleEvent *reply)

Detailed Description

Definition at line 47 of file nsAEMozillaSuiteHandler.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
kSuiteSignature 
kDoJavaScriptEvent 

Definition at line 50 of file nsAEMozillaSuiteHandler.h.

            {
              kSuiteSignature                    = 'MOZZ',
              kDoJavaScriptEvent          = 'jscr'
       };

Constructor & Destructor Documentation

Definition at line 47 of file nsAEMozillaSuiteHandler.cpp.

{
}

Definition at line 56 of file nsAEMozillaSuiteHandler.cpp.

{
}

Member Function Documentation

void AEMozillaSuiteHandler::HandleMozillaSuiteEvent ( const AppleEvent *  appleEvent,
AppleEvent *  reply 
)

Definition at line 65 of file nsAEMozillaSuiteHandler.cpp.

{
       OSErr         err = noErr;
       
       AEEventID            eventID;
       OSType        typeCode;
       Size                 actualSize    = 0L;
       
       // Get the event ID
       err = AEGetAttributePtr(appleEvent,       keyEventIDAttr, 
                                                               typeType, 
                                                               &typeCode, 
                                                               (Ptr)&eventID, 
                                                               sizeof(eventID), 
                                                               &actualSize);
       ThrowIfOSErr(err);
       
       try
       {
              switch (eventID)
              {
                     case kDoJavaScriptEvent:
                            // write me!
                            ThrowOSErr(errAEEventNotHandled);
                            break;
                            
                     default:
                            ThrowOSErr(errAEEventNotHandled);
                            break;
              }
       }
       catch (OSErr catchErr)
       {
              PutReplyErrorNumber(reply, catchErr);
              throw;
       }
       catch ( ... )
       {
              PutReplyErrorNumber(reply, paramErr);
              throw;
       }
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: