~kendfinger-deactivatedaccount/qapt/qapt

« back to all changes in this revision

Viewing changes to src/backend.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Thomas
  • Date: 2011-11-13 19:20:50 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20111113192050-ipdgpzp1eepr1q1s
Tags: 1.2.65-0ubuntu1
New upstream alpha release

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef QAPT_BACKEND_H
22
22
#define QAPT_BACKEND_H
23
23
 
 
24
#include <QtCore/QHash>
24
25
#include <QtCore/QVariantMap>
25
26
 
26
27
#include "globals.h"
65
66
     /**
66
67
      * Default destructor
67
68
      */
 
69
    // TODO QApt2: Heck no
68
70
    virtual ~Backend();
69
71
 
70
72
    /**
105
107
     */
106
108
    bool isRedoStackEmpty() const;
107
109
 
 
110
    bool areEventsCompressed() const;
 
111
 
108
112
    /**
109
113
     * Repopulates the internal package cache, package list, and group list.
110
114
     * Mostly used internally, like after an update or a package installation
121
125
    CacheState currentCacheState() const;
122
126
 
123
127
   /**
 
128
     * Gets changes made to the cache since the given cache state.
 
129
     *
 
130
     * @param oldState The CacheState to compare against
 
131
     * @param excluded List of packages to exlude from the check
 
132
     *
 
133
     * @return A QHash containing lists of changed packages for each
 
134
     *         Package::State change flag.
 
135
     * @since 1.3
 
136
     */
 
137
    QHash<Package::State, PackageList> stateChanges(CacheState oldState, PackageList excluded) const;
 
138
 
 
139
   /**
124
140
     * Returns the last event that the worker reported. When the worker is not
125
141
     * running, this returns InvalidEvent
126
142
     *
562
578
     */
563
579
    void markPackageForRemoval(const QString &name);
564
580
 
 
581
    void markPackages(const QApt::PackageList &packages, QApt::Package::State action);
 
582
 
 
583
    void setCompressEvents(bool enabled);
 
584
 
565
585
    /**
566
586
     * Commits all pending package state changes that have been made.
567
587
     *