---------- Forwarded message ---------- From: Milosz Derezynski <[email protected]> Date: Mon, Mar 1, 2010 at 6:50 PM Subject: Re: Emitting a signal - Help!! To: ArbolOne <[email protected]>
That's because you declared it as private. Take a look: > private: > .... > //signal accessor > typedef sigc::signal<my_enum::error_t> type_signal_end; > type_signal_end signal_quit(); Just declare it as public: > private: > .... > //signal accessor > typedef sigc::signal<my_enum::error_t> type_signal_end; > public: > type_signal_end signal_quit(); On Mon, Mar 1, 2010 at 3:31 AM, ArbolOne <[email protected]> wrote: > 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. > > > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > -- Please note that according to the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.] -- Please note that according to the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]
_______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
