void LeafModel::writeXML (ATOM_TiXmlElement *root) { ATOM_TiXmlElement eLeafWidth("LeafWidth"); eLeafWidth.SetDoubleAttribute ("Value", width); root->InsertEndChild (eLeafWidth); ATOM_TiXmlElement eLeafHeight("LeafHeight"); eLeafHeight.SetDoubleAttribute ("Value", height); root->InsertEndChild (eLeafHeight); ATOM_TiXmlElement eLeafTexture("LeafTexture"); eLeafTexture.SetAttribute ("FileName", textureFileName.c_str()); root->InsertEndChild (eLeafTexture); ATOM_TiXmlElement eLeafSizeV ("LeafSizeV"); eLeafSizeV.SetDoubleAttribute ("Value", sizeV); root->InsertEndChild (eLeafSizeV); ATOM_TiXmlElement eLeafRandomRange ("LeafRandomRange"); eLeafRandomRange.SetDoubleAttribute ("Value", randomRange); root->InsertEndChild (eLeafRandomRange); ATOM_TiXmlElement eLeafDensity ("LeafDensity"); eLeafDensity.SetAttribute ("Value", density); root->InsertEndChild (eLeafDensity); ATOM_TiXmlElement eLeafFlip("LeafFlip"); eLeafFlip.SetAttribute ("Value", flip ? 1 : 0); root->InsertEndChild (eLeafFlip); ATOM_TiXmlElement eVisible("LeafVisible"); eVisible.SetAttribute ("Value", visible ? 1 : 0); root->InsertEndChild (eVisible); }
ICQPlugin::~ICQPlugin() { unregisterMessages(); delete m_icq; delete m_aim; getContacts()->removePacketType(OscarPacket); getContacts()->removePacketType(ICQDirectPacket); getContacts()->removePacketType(AIMDirectPacket); Event eVisible(EventCommandRemove, (void*)CmdVisibleList); eVisible.process(); Event eInvisible(EventCommandRemove, (void*)CmdInvisibleList); eInvisible.process(); Event eCheckInvisible(EventCommandRemove, (void*)CmdCheckInvisible); eCheckInvisible.process(); Event eCheckInvisibleAll(EventCommandRemove, (void*)CmdCheckInvisibleAll); eCheckInvisibleAll.process(); Event eMenuSearch(EventMenuRemove, (void*)MenuSearchResult); eMenuSearch.process(); Event eMenuGroups(EventMenuRemove, (void*)MenuIcqGroups); eMenuGroups.process(); Event eMenuCheckInvisible(EventMenuRemove, (void*)MenuCheckInvisible); eMenuCheckInvisible.process(); }
ICQPlugin::~ICQPlugin() { unregisterMessages(); delete m_icq; delete m_aim; getContacts()->removePacketType(ICQPacket); getContacts()->removePacketType(ICQDirectPacket); getContacts()->removePacketType(AIMPacket); Event eVisible(EventCommandRemove, (void*)CmdVisibleList); eVisible.process(); Event eInvisible(EventCommandRemove, (void*)CmdInvisibleList); eInvisible.process(); Event eEncoding(EventCommandRemove, (void*)CmdChangeEncoding); eEncoding.process(); Event eAllEncodings(EventCommandRemove, (void*)CmdAllEncodings); eAllEncodings.process(); Event eCheckInvisible(EventCommandRemove, (void*)CmdCheckInvisible); eCheckInvisible.process(); Event eMenuEncoding(EventMenuRemove, (void*)MenuEncoding); eMenuEncoding.process(); Event eMenuSearch(EventMenuRemove, (void*)MenuSearchResult); eMenuSearch.process(); Event eMenuGroups(EventMenuRemove, (void*)MenuGroups); eMenuGroups.process(); }