InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAdobeBasicJobMetaData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 __IAdobeBasicJobMetaData_h__
25 #define __IAdobeBasicJobMetaData_h__
26 
27 #include "IPMUnknown.h"
28 #include "MetaDataID.h"
29 #include "K2Vector.h"
30 
31 //========================================================================================
32 // CLASS IAdobeBasicJobMetaData
33 //========================================================================================
43 {
44 public:
45 
48  class Job
49  {
50  public:
53  /* Constructors */
58  Job(const PMString& name = "", const PMString& id = "") : fName(name), fId(id) { }
59 
63  Job(const Job& other) : fName(other.fName), fId(other.fId) { }
64 
68  Job& operator=(const Job& other)
69  {
70  if (this != &other)
71  {
72  fName = other.fName;
73  fId = other.fId;
74  }
75 
76  return *this;
77  };
78 
83  bool operator==(const Job& other) const
84  {
85  return fName == other.fName && fId == other.fId;
86  }
87 
91  void SetName(const PMString& name) { fName = name; }
92 
96  PMString GetName() const { return fName; }
97 
101  void SetId(const PMString& id) { fId = id; }
102 
106  PMString GetId() const { return fId; }
107 
108  private:
109  PMString fName;
110  PMString fId;
111  };
112 
113 public:
114  enum { kDefaultIID = IID_IADOBEBASICJOBMETADATA };
115 
116  // ----- xapBJ:JobRef
120  virtual void SetJobs(const K2Vector<Job>& jobs) = 0;
121 
125  virtual K2Vector<Job> GetJobs() const = 0;
126 };
127 
128 
129 #endif // __IAdobeBasicJobMetaData_h__