#pragma once #include "common.h" class CSkype; class CAccount : public Account { public: typedef void (CSkypeProto::* OnAccountChanged)(int); typedef DRef Ref; typedef DRefs Refs; CAccount(unsigned int oid, SERootObject* root); bool IsOnline(); bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result); void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto); private: CSkype *skype; CSkypeProto* proto; OnAccountChanged callback; void OnChange(int prop); };