Bug 1624095 - fix bustage from bug 1620632: error: incomplete type 'nsIMAPMessagePartID' used in type trait expression. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Sat, 21 Mar 2020 14:42:09 +0200
changeset 38542 efb0a54d4ae2bddb84fe2bcad4373bb655f14329
parent 38541 d51e4a31fe1d03d1ce4c068b522aed0376174e7a
child 38543 67ab25b59f96b42a6e654ecad8437f31a5aea507
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersbustage-fix
bugs1624095, 1620632
Bug 1624095 - fix bustage from bug 1620632: error: incomplete type 'nsIMAPMessagePartID' used in type trait expression. rs=bustage-fix
mailnews/imap/src/nsIMAPBodyShell.h
--- a/mailnews/imap/src/nsIMAPBodyShell.h
+++ b/mailnews/imap/src/nsIMAPBodyShell.h
@@ -212,17 +212,28 @@ class nsIMAPBodypartMessage : public nsI
   virtual bool GetIsTopLevelMessage() { return m_topLevelMessage; }
 
  protected:
   nsIMAPMessageHeaders *m_headers;  // Every body shell should have headers
   nsIMAPBodypart *m_body;
   bool m_topLevelMessage;  // Whether or not this is the top-level message
 };
 
-class nsIMAPMessagePartID;
+// MessagePartID and an array of them are used for pipelining prefetches.
+
+class nsIMAPMessagePartID {
+ public:
+  nsIMAPMessagePartID(nsIMAPeFetchFields fields, const char *partNumberString);
+  nsIMAPeFetchFields GetFields() { return m_fields; }
+  const char *GetPartNumberString() { return m_partNumberString; }
+
+ protected:
+  const char *m_partNumberString;
+  nsIMAPeFetchFields m_fields;
+};
 
 // We will refer to a Body "Shell" as a hierarchical object representation of a
 // parsed BODYSTRUCTURE response.  A shell contains representations of Shell
 // "Parts."  A Body Shell can undergo essentially two operations: Construction
 // and Generation. Shell Construction occurs from a parsed a BODYSTRUCTURE
 // response, split into empty parts. Shell Generation generates a "MIME Shell"
 // of the message and streams it to libmime for display.  The MIME Shell has
 // selected (inline) parts filled in, and leaves all others for on-demand
@@ -352,22 +363,9 @@ class nsIMAPBodyShellCache {
   bool EjectEntry();
   uint32_t GetSize() { return m_shellList->Length(); }
   uint32_t GetMaxSize() { return 20; }
   nsTArray<nsIMAPBodyShell *> *m_shellList;  // For maintenance
   // For quick lookup based on UID
   nsRefPtrHashtable<nsCStringHashKey, nsIMAPBodyShell> m_shellHash;
 };
 
-// MessagePartID and an array of them are used for pipelining prefetches.
-
-class nsIMAPMessagePartID {
- public:
-  nsIMAPMessagePartID(nsIMAPeFetchFields fields, const char *partNumberString);
-  nsIMAPeFetchFields GetFields() { return m_fields; }
-  const char *GetPartNumberString() { return m_partNumberString; }
-
- protected:
-  const char *m_partNumberString;
-  nsIMAPeFetchFields m_fields;
-};
-
 #endif  // IMAPBODY_H