Ejemplo n.º 1
0
//! Creating List of Client-Services (SNAC-Attachment)
QOscarBA QOscarOService::createServiceList()
{
    QOscarBA ba;
    // Wireshark SIM-IM
    ba.append(createServiceInfo(OCAP_GENERIC    ,0x0004));
    ba.append(createServiceInfo(OCAP_SSI        ,0x0004));
    ba.append(createServiceInfo(OCAP_LOCATION   ,0x0001));
    ba.append(createServiceInfo(OCAP_BUDDIES    ,0x0001));
    ba.append(createServiceInfo(OCAP_ICQ        ,0x0001));
    ba.append(createServiceInfo(OCAP_ICBM       ,0x0001));
    ba.append(createServiceInfo(OCAP_INVITATION ,0x0001));
    ba.append(createServiceInfo(OCAP_PRIVACY    ,0x0001));
    ba.append(createServiceInfo(OCAP_USER_LOOKUP,0x0001));
    ba.append(createServiceInfo(OCAP_USAGE_STATS,0x0001));
    return ba;
}
	void createServiceInfoFile(const std::string &fname, const rProtos::DeviceInfo &record)
	{
		std::string data;
		createServiceInfo(data, record);
		std::ofstream o;
		o.open(fname, std::ofstream::out | std::ofstream::trunc);
		o << data;
		o.close();
	}