OSDN Git Service

Discontinue formal use of the build-aux submodule.
[mingw/mingw-get.git] / src / pkglist.h
index da63412..64c845c 100644 (file)
@@ -65,17 +65,15 @@ class pkgListViewMaker: public pkgDirectoryViewerEngine
   public:
     pkgListViewMaker( HWND );
     virtual void Dispatch( pkgXmlNode * );
+    virtual void MarkScheduledActions( pkgActionItem * );
+    virtual void UpdateListView( void );
 
   private:
     HWND ListView;
     LVITEM content;
-    char *GetTitle( pkgXmlNode *pkg )
-    {
-      return GetTitle( pkg, pkg->GetDocumentRoot() );
-    }
-    char *GetTitle( pkgXmlNode *, const pkgXmlNode * );
-    char *GetVersionString( char *, pkgSpecs * );
+    inline bool GetItem( void );
     void InsertItem( pkgXmlNode *, char * );
+    void UpdateItem( char *, bool = false );
     char *package_name;
 };
 
@@ -100,4 +98,12 @@ class pkgDirectory
     pkgDirectory *next;
 };
 
+/* The following helper function is used to retrieve release availability
+ * and installation status attributes for any specified package, from the
+ * XML database, returning specifications for the latest available release
+ * and the installed release, if any, in the to_install and the to_remove
+ * selection fields of the passed pkgActionItem structure respectively.
+ */
+EXTERN_C pkgXmlNode *pkgGetStatus( pkgXmlNode *, pkgActionItem * );
+
 #endif /* PKGLIST_H: $RCSfile$: end of file */