rename libstatus to statusgo_backend
This commit is contained in:
parent
659cb6df18
commit
3b4d6ade7d
|
@ -20,7 +20,7 @@ import views/[channels_list, message_list, chat_item, reactions, stickers, group
|
||||||
import ../../constants
|
import ../../constants
|
||||||
|
|
||||||
# TODO: remove me
|
# TODO: remove me
|
||||||
import status/libstatus/chat as libstatus_chat
|
import status/statusgo_backend/chat as statusgo_backend_chat
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "chats-view"
|
topics = "chats-view"
|
||||||
|
@ -53,7 +53,7 @@ const asyncActivityNotificationLoadTask: Task = proc(argEncoded: string) {.gcsaf
|
||||||
let arg = decode[AsyncActivityNotificationLoadTaskArg](argEncoded)
|
let arg = decode[AsyncActivityNotificationLoadTaskArg](argEncoded)
|
||||||
var activityNotifications: JsonNode
|
var activityNotifications: JsonNode
|
||||||
var activityNotificationsCallSuccess: bool
|
var activityNotificationsCallSuccess: bool
|
||||||
let activityNotificationsCallResult = libstatus_chat.rpcActivityCenterNotifications(newJString(""), 20, activityNotificationsCallSuccess)
|
let activityNotificationsCallResult = statusgo_backend_chat.rpcActivityCenterNotifications(newJString(""), 20, activityNotificationsCallSuccess)
|
||||||
if(activityNotificationsCallSuccess):
|
if(activityNotificationsCallSuccess):
|
||||||
activityNotifications = activityNotificationsCallResult.parseJson()["result"]
|
activityNotifications = activityNotificationsCallResult.parseJson()["result"]
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import constants as sr_constants
|
||||||
import status/[status]
|
import status/[status]
|
||||||
import status/chat/[chat]
|
import status/chat/[chat]
|
||||||
import status/types/[message, setting]
|
import status/types/[message, setting]
|
||||||
import status/libstatus/[settings]
|
import status/statusgo_backend/[settings]
|
||||||
import ../../../../app_service/[main]
|
import ../../../../app_service/[main]
|
||||||
import ../communities
|
import ../communities
|
||||||
import ../channel
|
import ../channel
|
||||||
|
|
|
@ -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 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 chronicles
|
||||||
import ../chat/views/channels_list
|
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/profile
|
||||||
import status/profile as status_profile
|
import status/profile as status_profile
|
||||||
import status/contacts as status_contacts
|
import status/contacts as status_contacts
|
||||||
|
|
|
@ -4,7 +4,7 @@ import NimQml, json, sequtils, chronicles, strutils, strformat, json, math
|
||||||
import
|
import
|
||||||
status/[status, wallet, utils],
|
status/[status, wallet, utils],
|
||||||
status/types/[gas_prediction],
|
status/types/[gas_prediction],
|
||||||
status/libstatus/wallet as status_wallet
|
status/statusgo_backend/wallet as status_wallet
|
||||||
import ../../../../app_service/[main]
|
import ../../../../app_service/[main]
|
||||||
import ../../../../app_service/tasks/[qt, threadpool]
|
import ../../../../app_service/tasks/[qt, threadpool]
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import json, chronicles
|
||||||
|
|
||||||
import ../../tasks/[qt, threadpool]
|
import ../../tasks/[qt, threadpool]
|
||||||
import status/status
|
import status/status
|
||||||
import status/libstatus/chat as status_chat
|
import status/statusgo_backend/chat as status_chat
|
||||||
|
|
||||||
include status/chat/utils
|
include status/chat/utils
|
||||||
include async_tasks
|
include async_tasks
|
||||||
|
|
|
@ -3,7 +3,7 @@ import json, chronicles
|
||||||
|
|
||||||
import ../../tasks/[qt, threadpool]
|
import ../../tasks/[qt, threadpool]
|
||||||
import status/[status, wallet2]
|
import status/[status, wallet2]
|
||||||
import status/libstatus/wallet as status_wallet
|
import status/statusgo_backend/wallet as status_wallet
|
||||||
|
|
||||||
include async_tasks
|
include async_tasks
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import
|
||||||
from times import cpuTime
|
from times import cpuTime
|
||||||
|
|
||||||
import
|
import
|
||||||
status/libstatus/settings as status_settings,
|
status/statusgo_backend/settings as status_settings,
|
||||||
status/libstatus/chat as status_chat,
|
status/statusgo_backend/chat as status_chat,
|
||||||
status/libstatus/mailservers as status_mailservers,
|
status/statusgo_backend/mailservers as status_mailservers,
|
||||||
status/libstatus/core as status_core,
|
status/statusgo_backend/core as status_core,
|
||||||
status/fleet,
|
status/fleet,
|
||||||
./events as mailserver_events
|
./events as mailserver_events
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import # vendor libs
|
||||||
import # status-desktop libs
|
import # status-desktop libs
|
||||||
../worker, ./model, ../../qt, ../../common as task_runner_common,
|
../worker, ./model, ../../qt, ../../common as task_runner_common,
|
||||||
../common as methuselash_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
|
export
|
||||||
chronos, task_runner_common, json_serialization
|
chronos, task_runner_common, json_serialization
|
||||||
|
|
|
@ -124,7 +124,7 @@ proc mainProc() =
|
||||||
|
|
||||||
|
|
||||||
# We need this global variable in order to be able to access the application
|
# 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)
|
signalsQObjPointer = cast[pointer](appService.signalController.vptr)
|
||||||
defer:
|
defer:
|
||||||
signalsQObjPointer = nil
|
signalsQObjPointer = nil
|
||||||
|
@ -252,7 +252,7 @@ proc mainProc() =
|
||||||
engine.load(newQUrl("qrc:///main.qml"))
|
engine.load(newQUrl("qrc:///main.qml"))
|
||||||
|
|
||||||
# Please note that this must use the `cdecl` calling convention because
|
# 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)
|
# we cannot capture any local variables here (we must rely on globals)
|
||||||
var callback: SignalCallback = proc(p0: cstring) {.cdecl.} =
|
var callback: SignalCallback = proc(p0: cstring) {.cdecl.} =
|
||||||
if signalsQObjPointer != nil:
|
if signalsQObjPointer != nil:
|
||||||
|
|
Loading…
Reference in New Issue