2021-12-29 15:09:29 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var profileModule
|
|
|
|
|
|
|
|
property string pubkey: userProfile.pubKey
|
|
|
|
property string name: userProfile.name // in case of ens returns pretty ens form
|
|
|
|
property string username: userProfile.username
|
2022-03-02 00:14:20 +00:00
|
|
|
property string displayName: userProfile.displayName
|
2021-12-29 15:09:29 +00:00
|
|
|
property string ensName: userProfile.preferredName || userProfile.firstEnsName || userProfile.ensName
|
|
|
|
property string profileLargeImage: userProfile.largeImage
|
|
|
|
property string icon: userProfile.icon
|
|
|
|
|
|
|
|
function uploadImage(source, aX, aY, bX, bY) {
|
|
|
|
return root.profileModule.upload(source, aX, aY, bX, bY)
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeImage() {
|
|
|
|
return root.profileModule.remove()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getQrCodeSource(publicKey) {
|
|
|
|
return globalUtils.qrCode(publicKey)
|
|
|
|
}
|
|
|
|
|
|
|
|
function copyToClipboard(value) {
|
|
|
|
globalUtils.copyToClipboard(value)
|
|
|
|
}
|
2022-03-02 00:14:20 +00:00
|
|
|
|
|
|
|
function setDisplayName(displayName) {
|
|
|
|
root.profileModule.setDisplayName(displayName)
|
|
|
|
}
|
2021-12-29 15:09:29 +00:00
|
|
|
}
|