X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=17fdd70a556d89ee717d71a84ce5c8a271ce1fad;hp=1cb2ee827dd9f61a3d5eb8f1bd012d3e868b8e4d;hb=029c6d402af7b00b320dd5ce48f230783a88957a;hpb=7082ea3159aaaea098b34c204d5123a3dca3753a diff --git a/src/core/storage.h b/src/core/storage.h index 1cb2ee82..17fdd70a 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -59,6 +59,10 @@ public slots: /** \return A string that can be displayed by the client to describe the storage backend */ virtual QString description() const = 0; + //! Returns a map where the keys are required properties to use the storage backend + /* the values are QVariants with default values */ + virtual QVariantMap setupKeys() const = 0; + //! Setup the storage provider. /** This prepares the storage provider (e.g. create tables, etc.) for use within Quassel. * \param settings Hostname, port, username, password, ... @@ -176,13 +180,6 @@ public slots: */ virtual QList networks(UserId user) = 0; - //! Get the unique NetworkId of the network for a user. - /** \param user The core user who owns this network - * \param network The network name - * \return The NetworkId corresponding to the given network, or 0 if not found - */ - virtual NetworkId getNetworkId(UserId user, const QString &network) = 0; - //! Get a list of Networks to restore /** Return a list of networks the user was connected at the time of core shutdown * \note This method is threadsafe.