import QtQuick 2.13 import utils 1.0 QtObject { id: root property var profileModule property string pubkey: userProfile.pubKey property string name: userProfile.name property string username: userProfile.username property string displayName: userProfile.displayName property string preferredName: userProfile.preferredName property string profileLargeImage: userProfile.largeImage property string icon: userProfile.icon property bool userDeclinedBackupBanner: localAccountSensitiveSettings.userDeclinedBackupBanner property var privacyStore: profileSectionModule.privacyModule readonly property string bio: profileModule.bio readonly property string socialLinksJson: profileModule.socialLinksJson readonly property var socialLinksModel: profileModule.socialLinksModel readonly property var temporarySocialLinksModel: profileModule.temporarySocialLinksModel // for editing purposes readonly property bool socialLinksDirty: profileModule.socialLinksDirty onUserDeclinedBackupBannerChanged: { if (userDeclinedBackupBanner !== localAccountSensitiveSettings.userDeclinedBackupBanner) { localAccountSensitiveSettings.userDeclinedBackupBanner = userDeclinedBackupBanner } } property var details: Utils.getContactDetailsAsJson(pubkey) 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) } function setDisplayName(displayName) { root.profileModule.setDisplayName(displayName) } function createCustomLink(text, url) { root.profileModule.createCustomLink(text, url) } function removeCustomLink(uuid) { root.profileModule.removeCustomLink(uuid) } function updateLink(uuid, text, url) { root.profileModule.updateLink(uuid, text, url) } function resetSocialLinks() { root.profileModule.resetSocialLinks() } function saveSocialLinks() { root.profileModule.saveSocialLinks() } function setBio(bio) { root.profileModule.setBio(bio) } }