~ci-train-bot/libertine/libertine-ubuntu-zesty-2576

« back to all changes in this revision

Viewing changes to common/ContainerOperationDetails.h

  • Committer: Bileto Bot
  • Date: 2017-03-08 14:53:28 UTC
  • mfrom: (193.1.3 libertine.1.7-release)
  • Revision ID: ci-train-bot@canonical.com-20170308145328-582vu8uhgp3wt2xl
* Fix libertined such that it can probe for currently running X apps and
  rebuild application running state. (LP: #1637579)
* Gracefully handle the case where an application does not start.
  (LP: #1666177)
* Kill the libertined service during the libertined package removal and
  upgrades (LP: #1667368)
* Refactor package operation details into container operation details.
* Allowing specifying multiple packages to be installed or removed.
  (LP: #1665647)
* Show the current container state in the 'Status' section of the
  Container Info page in the UI. (LP: #1667726)
* Add ability to configure stopping or freezing a container from within
  the UI. (LP: #1667717)
* Bump version to 1.7.
* Prevent rewriting existing data in ContainersConfig. (LP: #1659115)
* Prevent staging libertine files when installing dependencies and fix
  deprecations for the snap.
* Use AdaptivePageLayout instead of PageStack for app navigation.
  (LP: #1550365) (LP: #1659076)
* Refactor ContainersConfig handling from the GUI.
* Prevent removing container from the database when destroy fails.
* Various fixes for getting the confined snap working with libertined.
* Remove /Progress objects from d-bus connection during cleanup.
* LXD container status will override d-bus result during destroy only.
* Implement GUI for adding and removing bind-mounts in containers.
* Use a decorator to refresh the database during any libertined operations
  involving ContainersConfig.
* Fix any broken symlinks in the local lxd rootfs during update and package
  installation. (LP: #1659646)
* Update the default container type to lxd. (LP: #1665645)
* Properly remove bind-mounted files in local rootfs during lxd destroy.
* Add container hostname to /etc/hosts in lxd containers.
* Add a force option for destroying running containers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2016 Canonical Ltd
 
2
 * Copyright 2016-2017 Canonical Ltd
3
3
 *
4
4
 * Libertine is free software: you can redistribute it and/or modify it under
5
5
 * the terms of the GNU General Public License, version 3, as published by the
19
19
#include <QMap>
20
20
 
21
21
 
22
 
class PackageOperationDetails : public QObject
 
22
class ContainerOperationDetails : public QObject
23
23
{
24
24
  Q_OBJECT
25
25
 
26
26
public:
27
 
  explicit PackageOperationDetails(QObject* parent = nullptr);
28
 
  virtual ~PackageOperationDetails() = default;
 
27
  explicit ContainerOperationDetails(QObject* parent = nullptr);
 
28
  virtual ~ContainerOperationDetails() = default;
29
29
 
30
 
  Q_INVOKABLE QString details(QString const& container_id, QString const& package_id) const;
31
 
  Q_INVOKABLE void clear(QString const& container_id, QString const& package_id);
 
30
  Q_INVOKABLE QString details(QString const& container_id) const;
 
31
  Q_INVOKABLE void clear(QString const& container_id);
32
32
 
33
33
public slots:
34
 
  void update(QString const& container_id, QString const& package_id, QString const& new_details);
 
34
  void update(QString const& container_id, QString const& new_details);
35
35
 
36
36
signals:
37
 
  void updated(QString const& container_id, QString const& package_id, QString const& new_details);
 
37
  void updated(QString const& container_id, QString const& new_details);
38
38
  void send(QString const& input);
39
39
  void error(QString const& short_description, QString const& details);
40
40
 
41
41
private:
42
 
  QMap<QString, QMap<QString, QString> > details_;
 
42
  QMap<QString, QString> details_;
43
43
};