Emitting a signal - Help!!



WindowsXP
MinGW (latest)
GNU (latest)

Hello boys and girls.

MyClass{
public:
   ...
private:
    ....
       //signal accessor
       typedef sigc::signal<my_enum::error_t> type_signal_end;
       type_signal_end signal_quit();

protected:
       type_signal_end m_signal_end1;
}; //class

MyClass::type_signal_end MyClass::signal_quit() {
   return this->m_signal_end1;
}

I want my class to emit a signal, for this I have follow the Tutorial the best I can, as the example above shows. Later on, the class that uses my class calls has a listener that goes like this:
myclass.signal_quit().connect( sigc::mem_fun(*this, &Tester::the_method );

However, when I compile I get a strange error saying that 'type_signal_end signal_quit()' is private!!??
What have I done wrong and how can I fix this problem?

--
___ _____ _____ _____ _ _____ __ _ _____ / | | _ \ | _ \ / _ \ | | / _ \ | \ | | | ____| / /| | | |_| | | |_| | | | | | | | | | | | | \| | | |__ / / | | | _ / | _ { | | | | | | | | | | | |\ | | __| / / | | | | \ \ | |_| | | |_| | | |___ | |_| | | | \ | | |___ /_/ |_| |_| \_\ |_____/ \_____/ |_____| \_____/ |_| \_| |_____|

ArbolOne.org specializes in Custom Web Site Design, Web Site Re Design, Web Site Template Modifications, Web Site Maintenance, Integration of Payment Gateways (API's), Database Applications, Custom Applications and much more.
Happiness has many doors, and when one of them closes another opens, yet we spent so much time looking at the one that is shut that we don't see the one that just opened.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]