Mercurial > wow > squawk
changeset 3:1cc6e4710e2e
adding tests
author | wobin |
---|---|
date | Fri, 17 Apr 2009 15:59:51 +1000 |
parents | 75a76882c343 |
children | d1383f2d9b43 |
files | Squawk.lua Squawk.toc Tests.lua |
diffstat | 3 files changed, 33 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/Squawk.lua Thu Apr 16 22:05:24 2009 +1000 +++ b/Squawk.lua Fri Apr 17 15:59:51 2009 +1000 @@ -32,7 +32,9 @@ Settings.Private = Model.db.profile.Private LibStub("AceComm-3.0"):Embed(Controller) - Controller:RegisterComm("Squawk", ReceiveMessage) + Controller:RegisterComm("Squawk", Controller.ReceiveMessage) + + LibStub("AceConsole-3.0"):Embed(View) end -- Model -- @@ -187,13 +189,17 @@ -- View -- function View:UpdateSquawkList() + self:Print("Updated Squawk List") end -function View:NotifyOfPending() +function View:NotifyOfPending(Name) + self:Print(Name.." will have to approve your request") end function View:NotifyOfNewFollowing(Name) + self:Print("You are now following "..Name) end function View:NotifyOfNewFollower(Name) + self:Print(Name.." is now following you") end
--- a/Squawk.toc Thu Apr 16 22:05:24 2009 +1000 +++ b/Squawk.toc Fri Apr 17 15:59:51 2009 +1000 @@ -1,15 +1,16 @@ -## Interface: 30000 -## Title: Squawk -## Author: Wobin -## Notes: In no way related to a Twitter client... *shifty look* -## Version: 8 -## X-Category: Chat & Communication -## LoadOnDemand: 0 -## SavedVariables: SquawkDB -## OptionalDeps: Ace3 - -embeds.xml - -Locale\Localization.enUS.lua - -Squawk.lua +## Interface: 30000 +## Title: Squawk +## Author: Wobin +## Notes: In no way related to a Twitter client... *shifty look* +## Version: 8 +## X-Category: Chat & Communication +## LoadOnDemand: 0 +## SavedVariables: SquawkDB +## OptionalDeps: Ace3 + +embeds.xml + +Locale\Localization.enUS.lua + +Squawk.lua +Tests.lua