~ubuntu-branches/ubuntu/natty/ekiga/natty

« back to all changes in this revision

Viewing changes to lib/engine/framework/runtime.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2009-07-22 16:04:41 UTC
  • mfrom: (1.1.10 upstream) (1.4.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090722160441-s0n16jljj8zx1qd7
Tags: 3.2.5-1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - debian/patches/ubuntu_lpi.patch: Launchpad integration.
  - Run autoreconf during build.
* Ubuntu changes dropped:
  - Replace libpt2.6.1-dev with libpt-dev in the Build-Depends.
* Enable quilt usage again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
namespace Ekiga
58
58
{
59
59
 
60
 
/**
61
 
 * @addtogroup services
62
 
 * @{
63
 
 */
 
60
  /**
 
61
   * @addtogroup services
 
62
   * @{
 
63
   */
64
64
 
65
 
  class Runtime
66
 
    : public Service
 
65
  namespace Runtime
67
66
  {
68
 
  public:
69
 
 
70
 
    Runtime ()
71
 
      {}
72
 
 
73
 
    virtual ~Runtime ()
74
 
      {}
75
 
 
76
 
    const std::string get_name () const
77
 
      { return "runtime"; }
78
 
 
79
 
    const std::string get_description () const
80
 
      { return "\tObject bringing in the runtime"; }
81
 
 
82
 
    virtual void run () = 0;
83
 
 
84
 
    virtual void quit () = 0;
85
 
 
86
 
    virtual void run_in_main (sigc::slot0<void> action,
87
 
                              unsigned int seconds = 0) = 0;
88
 
    
89
 
 
90
 
    void emit_signal_in_main (sigc::signal0<void> sign)
91
 
      {
92
 
        run_in_main (sigc::bind (sigc::ptr_fun (emit_signal_in_main_helper), sign));
93
 
      }
 
67
    void init (); // depends on the implementation
 
68
 
 
69
    void run (); // depends on the implementation
 
70
 
 
71
    void quit (); // depends on the implementation
 
72
 
 
73
    void run_in_main (sigc::slot0<void> action,
 
74
                      unsigned int seconds = 0); // depends on the implementation
 
75
 
 
76
    inline void emit_signal_in_main (sigc::signal0<void> sign)
 
77
    {
 
78
      run_in_main (sigc::bind (sigc::ptr_fun (emit_signal_in_main_helper), sign));
 
79
    }
94
80
 
95
81
    template<typename data_type>
96
82
    void emit_signal_in_main (sigc::signal1<void, data_type> sign,
97
83
                              data_type data)
98
 
      {
99
 
        run_in_main (sigc::bind (sigc::ptr_fun (emit_signal_in_main_helper1<data_type>), sign, data));
100
 
      }
 
84
    {
 
85
      run_in_main (sigc::bind (sigc::ptr_fun (emit_signal_in_main_helper1<data_type>), sign, data));
 
86
    }
101
87
  };
102
88
 
103
 
/**
104
 
 * @}
105
 
 */
 
89
  /**
 
90
   * @}
 
91
   */
106
92
 
107
93
};
108
94