InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PluginMetadata.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Robin Briggs
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __PluginMetaData__
25 #define __PluginMetaData__
26 
27 #include "IPMStream.h"
28 
30 {
31  public:
32  PluginMetadata() :
33  fCompanyName(),
34  fURL(),
35  fMissingAlertText()
36  {}
37  PluginMetadata(const PMString &companyName, const PMString& url, const PMString& alertText) :
38  fCompanyName(companyName),
39  fURL(url),
40  fMissingAlertText(alertText)
41  {}
42  PluginMetadata(const PluginMetadata& other) :
43  fCompanyName(other.fCompanyName),
44  fURL(other.fURL),
45  fMissingAlertText(other.fMissingAlertText)
46  {}
47  PMString GetCompanyName() const
48  { return fCompanyName; }
49  PMString GetURL() const
50  { return fURL; }
51  PMString GetMissingAlertText() const
52  { return fMissingAlertText; }
53 
54  void ReadWrite(IPMStream *s)
55  {
56  fCompanyName.ReadWrite(s);
57  fURL.ReadWrite(s);
58  fMissingAlertText.ReadWrite(s);
59  }
60  private:
61  PMString fCompanyName;
62  PMString fURL;
63  PMString fMissingAlertText;
64 };
65 
66 
67 #endif //__PluginMetaData__