bool EvaUser::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: loadGroupedBuddiesReady(); break; case 1: loadQunListReady(); break; default: return QObject::qt_emit(_id,_o); } return TRUE; }
void EvaUser::customEvent( QCustomEvent * e ) { if(e->type() == EvaLoadGroupedUsersEvent){ EvaBuddyListEvent *ge = (EvaBuddyListEvent *)e; details = ge->getMyInfo(); groupNames = ge->getGroupNames(); myFriends = ge->getMyFriendList(); mExtraInfo = ge->getExtraInfo(); mSignature = ge->getSignature(); mSignatureModifyTime = ge->getSignatureTime(); emit loadGroupedBuddiesReady(); } if(e->type() == EvaLoadQunUsersEvent){ EvaQunListEvent *gl = (EvaQunListEvent *)e; qunList = gl->getQunList(); emit loadQunListReady(); } }