rename libstatus to statusgo_backend

This commit is contained in:
Iuri Matias 2021-09-11 17:34:27 -04:00
parent 659cb6df18
commit 3b4d6ade7d
9 changed files with 14 additions and 14 deletions

View File

@ -20,7 +20,7 @@ import views/[channels_list, message_list, chat_item, reactions, stickers, group
import ../../constants
# TODO: remove me
import status/libstatus/chat as libstatus_chat
import status/statusgo_backend/chat as statusgo_backend_chat
logScope:
topics = "chats-view"
@ -53,7 +53,7 @@ const asyncActivityNotificationLoadTask: Task = proc(argEncoded: string) {.gcsaf
let arg = decode[AsyncActivityNotificationLoadTaskArg](argEncoded)
var activityNotifications: JsonNode
var activityNotificationsCallSuccess: bool
let activityNotificationsCallResult = libstatus_chat.rpcActivityCenterNotifications(newJString(""), 20, activityNotificationsCallSuccess)
let activityNotificationsCallResult = statusgo_backend_chat.rpcActivityCenterNotifications(newJString(""), 20, activityNotificationsCallSuccess)
if(activityNotificationsCallSuccess):
activityNotifications = activityNotificationsCallResult.parseJson()["result"]

View File

@ -6,7 +6,7 @@ import constants as sr_constants
import status/[status]
import status/chat/[chat]
import status/types/[message, setting]
import status/libstatus/[settings]
import status/statusgo_backend/[settings]
import ../../../../app_service/[main]
import ../communities
import ../channel

View File

@ -2,7 +2,7 @@ import NimQml, sequtils, strutils, sugar, os, json, chronicles
import views/[mailservers_list, ens_manager, contacts, devices, mailservers, mnemonic, network, fleets, profile_info, device_list, dapp_list, profile_picture, profile_settings, muted_chats]
import chronicles
import ../chat/views/channels_list
import status/libstatus/accounts as status_accounts
import status/statusgo_backend/accounts as status_accounts
import status/profile/profile
import status/profile as status_profile
import status/contacts as status_contacts

View File

@ -4,7 +4,7 @@ import NimQml, json, sequtils, chronicles, strutils, strformat, json, math
import
status/[status, wallet, utils],
status/types/[gas_prediction],
status/libstatus/wallet as status_wallet
status/statusgo_backend/wallet as status_wallet
import ../../../../app_service/[main]
import ../../../../app_service/tasks/[qt, threadpool]

View File

@ -3,7 +3,7 @@ import json, chronicles
import ../../tasks/[qt, threadpool]
import status/status
import status/libstatus/chat as status_chat
import status/statusgo_backend/chat as status_chat
include status/chat/utils
include async_tasks

View File

@ -3,7 +3,7 @@ import json, chronicles
import ../../tasks/[qt, threadpool]
import status/[status, wallet2]
import status/libstatus/wallet as status_wallet
import status/statusgo_backend/wallet as status_wallet
include async_tasks

View File

@ -4,10 +4,10 @@ import
from times import cpuTime
import
status/libstatus/settings as status_settings,
status/libstatus/chat as status_chat,
status/libstatus/mailservers as status_mailservers,
status/libstatus/core as status_core,
status/statusgo_backend/settings as status_settings,
status/statusgo_backend/chat as status_chat,
status/statusgo_backend/mailservers as status_mailservers,
status/statusgo_backend/core as status_core,
status/fleet,
./events as mailserver_events

View File

@ -7,7 +7,7 @@ import # vendor libs
import # status-desktop libs
../worker, ./model, ../../qt, ../../common as task_runner_common,
../common as methuselash_common,
status/libstatus/mailservers # TODO: needed for MailserverTopic type, remove?
status/statusgo_backend/mailservers # TODO: needed for MailserverTopic type, remove?
export
chronos, task_runner_common, json_serialization

View File

@ -124,7 +124,7 @@ proc mainProc() =
# We need this global variable in order to be able to access the application
# from the non-closure callback passed to `libstatus.setSignalEventCallback`
# from the non-closure callback passed to `statusgo_backend.setSignalEventCallback`
signalsQObjPointer = cast[pointer](appService.signalController.vptr)
defer:
signalsQObjPointer = nil
@ -252,7 +252,7 @@ proc mainProc() =
engine.load(newQUrl("qrc:///main.qml"))
# Please note that this must use the `cdecl` calling convention because
# it will be passed as a regular C function to libstatus. This means that
# it will be passed as a regular C function to statusgo_backend. This means that
# we cannot capture any local variables here (we must rely on globals)
var callback: SignalCallback = proc(p0: cstring) {.cdecl.} =
if signalsQObjPointer != nil: