~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to apt-pkg/deb/dpkgpm.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, TJ Guthrie
  • Date: 2013-11-24 10:56:22 UTC
  • mfrom: (1.5.40 experimental)
  • mto: (1.5.41 experimental)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: package-import@ubuntu.com-20131124105622-p22c5ttgxd6nrq5g
Tags: 0.9.13
[ TJ Guthrie ]
Changed MinAgeSec to MinAge in /etc/cron.daily/apt:200,204 
LP: #1206047

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <map>
16
16
#include <stdio.h>
17
17
#include <apt-pkg/macros.h>
 
18
#include <apt-pkg/init.h>
18
19
 
19
20
#ifndef APT_8_CLEANER_HEADERS
20
21
using std::vector;
23
24
 
24
25
class pkgDPkgPMPrivate;
25
26
 
 
27
 
26
28
class pkgDPkgPM : public pkgPackageManager
27
29
{
28
30
   private:
83
85
   __deprecated bool SendV2Pkgs(FILE *F);
84
86
   bool SendPkgsInfo(FILE * const F, unsigned int const &Version);
85
87
   void WriteHistoryTag(std::string const &tag, std::string value);
 
88
   std::string ExpandShortPackageName(pkgDepCache &Cache,
 
89
                                      const std::string &short_pkgname);
86
90
 
87
91
   // Terminal progress 
88
92
   void SetupTerminalScrollArea(int nr_scrolled_rows);
94
98
   // dpkg log
95
99
   bool OpenLog();
96
100
   bool CloseLog();
 
101
 
 
102
   // helper
 
103
   void BuildPackagesProgressMap();
 
104
   void StartPtyMagic();
 
105
   void StopPtyMagic();
97
106
   
98
107
   // input processing
99
108
   void DoStdin(int master);
100
109
   void DoTerminalPty(int master);
101
 
   void DoDpkgStatusFd(int statusfd, int OutStatusFd);
102
 
   void ProcessDpkgStatusLine(int OutStatusFd, char *line);
 
110
   void DoDpkgStatusFd(int statusfd);
 
111
   void ProcessDpkgStatusLine(char *line);
 
112
#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 13)
 
113
   void DoDpkgStatusFd(int statusfd, int unused) {
 
114
      DoDpkgStatusFd(statusfd);
 
115
   }
 
116
   void ProcessDpkgStatusLine(int unused, char *line) {
 
117
      ProcessDpkgStatusLine(line);
 
118
   }
 
119
#endif
 
120
 
103
121
 
104
122
   // The Actuall installation implementation
105
123
   virtual bool Install(PkgIterator Pkg,std::string File);
106
124
   virtual bool Configure(PkgIterator Pkg);
107
125
   virtual bool Remove(PkgIterator Pkg,bool Purge = false);
 
126
 
 
127
#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
 
128
   virtual bool Go(APT::Progress::PackageManager *progress);
 
129
#else
108
130
   virtual bool Go(int StatusFd=-1);
 
131
   bool GoNoABIBreak(APT::Progress::PackageManager *progress);
 
132
#endif
 
133
 
109
134
   virtual void Reset();
110
135
   
111
136
   public: