Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / RestartServer / Messenger_i.h
blobb9735f7c344b70e540f4bd1a57b6396155d74008
1 /* -*- C++ -*- */
3 #ifndef MESSENGERI_H_
4 #define MESSENGERI_H_
6 #include "MessengerS.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 #pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 class Terminator;
14 //Class Messenger_i
15 class Messenger_i : public virtual POA_Messenger
17 public:
18 //Constructor
19 Messenger_i (CORBA::ORB_ptr orb, Terminator &terminator);
21 //Destructor
22 virtual ~Messenger_i (void);
24 virtual CORBA::Boolean send_message (
25 const char * user_name,
26 const char * subject,
27 char *& message);
29 virtual void abort (CORBA::Short delay_secs);
31 virtual void shutdown (void);
33 private:
34 /// Use an ORB reference to shutdown the application.
35 CORBA::ORB_var orb_;
37 int message_count_;
39 Terminator& terminator_;
43 #endif /* MESSENGERI_H_ */