From c3ddec43fa005f5425a0acc77d46d78802e40672 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 25 May 2020 10:56:54 -0400 Subject: [PATCH] remove file accidentaly added by mistake --- src/app/profile/profileView.nim | 58 --------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/app/profile/profileView.nim diff --git a/src/app/profile/profileView.nim b/src/app/profile/profileView.nim deleted file mode 100644 index 1e7936a80f..0000000000 --- a/src/app/profile/profileView.nim +++ /dev/null @@ -1,58 +0,0 @@ -import NimQml -import mailserversList - -QtObject: - type ProfileView* = ref object of QObject - username*: string - identicon*: string - mailserversList*: MailServersList - - proc setup(self: ProfileView) = - self.QObject.setup - - proc delete*(self: ProfileView) = - self.QObject.delete - - proc newProfileView*(): ProfileView = - new(result, delete) - result.username = "" - result.identicon = "" - result.mailserversList = newMailServersList() - result.setup - - proc username*(self: ProfileView): string {.slot.} = - result = self.username - - proc receivedUsername*(self: ProfileView, username: string) {.signal.} - - proc addMailserverToList*(self: ProfileView, name: string, endpoint: string) {.slot.} = - self.mailserversList.add(name, endpoint) - - proc setUsername*(self: ProfileView, username: string) {.slot.} = - self.username = username - self.receivedUsername(username) - - QtProperty[string] username: - read = username - write = setUsername - notify = receivedUsername - - proc identicon*(self: ProfileView): string {.slot.} = - result = self.identicon - - proc getMailserversList(self: ProfileView): QVariant {.slot.} = - return newQVariant(self.mailserversList) - - QtProperty[QVariant] mailserversList: - read = getMailserversList - - proc receivedIdenticon*(self: ProfileView, identicon: string) {.signal.} - - proc setIdenticon*(self: ProfileView, identicon: string) {.slot.} = - self.identicon = identicon - self.receivedIdenticon(identicon) - - QtProperty[string] identicon: - read = identicon - write = setIdenticon - notify = receivedIdenticon