Ejemplo n.º 1
0
 protected internal void SetAnnotationFlag(AnnotationFlags flag, bool value)
 {
     if (value)
     {
         _annotationFlags |= flag;
     }
     else
     {
         _annotationFlags &= ~flag;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new <see cref="Annotation"/>.
 /// </summary>
 public Annotation(DictionaryToken annotationDictionary, AnnotationType type, PdfRectangle rectangle, string content, string name, string modifiedDate,
                   AnnotationFlags flags, AnnotationBorder border)
 {
     AnnotationDictionary = annotationDictionary ?? throw new ArgumentNullException(nameof(annotationDictionary));
     Type         = type;
     Rectangle    = rectangle;
     Content      = content;
     Name         = name;
     ModifiedDate = modifiedDate;
     Flags        = flags;
     Border       = border;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new <see cref="Annotation"/>.
 /// </summary>
 public Annotation(DictionaryToken annotationDictionary, AnnotationType type, PdfRectangle rectangle, string content, string name, string modifiedDate,
                   AnnotationFlags flags, AnnotationBorder border, IReadOnlyList <QuadPointsQuadrilateral> quadPoints)
 {
     AnnotationDictionary = annotationDictionary ?? throw new ArgumentNullException(nameof(annotationDictionary));
     Type         = type;
     Rectangle    = rectangle;
     Content      = content;
     Name         = name;
     ModifiedDate = modifiedDate;
     Flags        = flags;
     Border       = border;
     QuadPoints   = quadPoints ?? EmptyArray <QuadPointsQuadrilateral> .Instance;
 }
Ejemplo n.º 4
0
 public QStatus AddMember(Message.Type type, string name, string inputSignature,
                          string outputSignature, string argNames, AnnotationFlags annotation = AnnotationFlags.Default)
 {
     return(alljoyn_interfacedescription_addmember(_interfaceDescription,
                                                   (int)type, name, inputSignature, outputSignature, argNames, (byte)annotation));
 }
Ejemplo n.º 5
0
			public QStatus AddMember(Message.Type type, string name, string inputSignature,
				string outputSignature, string argNames, AnnotationFlags annotation = AnnotationFlags.Default)
			{
				return alljoyn_interfacedescription_addmember(_interfaceDescription,
					(int)type, name, inputSignature, outputSignature, argNames, (byte)annotation);
			}
			/**
			 * Add a signal member to the interface.
			 *
			 * @param name        Name of method call member.
			 * @param sig         Signature of parameters or NULL for none.
			 * @param argNames    Comma separated list of arg names used in annotation XML.
			 * @param annotation  Annotation flags.
			 *
			 * @return
			 *      - QStatus.OK if successful
			 *      - QStatus.BUS_MEMBER_ALREADY_EXISTS if member already exists
			 */
			public QStatus AddSignal(string name, string sig, string argNames, AnnotationFlags annotation)
			{
				return AddMember(Message.Type.Signal, name, sig, "", argNames, annotation);
			}
			/**
			 * Add a member to the interface. With one of the built in annotations.
			 *
			 * The possible annotations are
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.Default = 0x0
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.Deprecated = 0x1
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.NoReply = 0x2
			 *
			 * If Default annotation flag is used no annotations will be added to the method.
			 *
			 * Using the Depricated annotation flag will add the org.freedesktop.DBus.Depricated=true
			 * annotation to the method. This annotation is an indication that the method has been
			 * depricated.
			 *
			 * Using the NoReply annotation flag will add the org.freedesktop.DBus.Method.NoReply=true
			 * annotation to the method. If this annotation is set don't expect a reply to the method
			 * call.
			 *
			 * The Depricated and NoReply annotation flags can be ORed together to add both annotations.
			 *
			 * To add other annotations use the InterfaceDescription.AddMemberAnnotation method.
			 *
			 * @param name        Name of member.
			 * @param inputSig    Signature of input parameters or NULL for none.
			 * @param outSig      Signature of output parameters or NULL for none.
			 * @param argNames    Comma separated list of input and then output arg names used in annotation XML.
			 * @param annotation  Annotation flags.
			 *
			 * @return
			 *      - QStatus.OK if successful
			 *      - QStatus.BUS_MEMBER_ALREADY_EXISTS if member already exists
			 */
			public QStatus AddMethod(string name, string inputSig, string outSig, string argNames, AnnotationFlags annotation)
			{
				return AddMember(Message.Type.MethodCall, name, inputSig, outSig, argNames, annotation);
			}
Ejemplo n.º 8
0
			/**
			 * Add a signal member to the interface.
			 *
			 * @param name        Name of method call member.
			 * @param sig         Signature of parameters or NULL for none.
			 * @param argNames    Comma separated list of arg names used in annotation XML.
			 * @param annotation  Annotation flags.
			 *
			 * @return
			 *      - QStatus.OK if successful
			 *      - QStatus.BUS_MEMBER_ALREADY_EXISTS if member already exists
			 */
			public QStatus AddSignal(string name, string sig, string argNames, AnnotationFlags annotation)
			{
				return AddMember(Message.Type.Signal, name, sig, "", argNames, annotation);
			}
Ejemplo n.º 9
0
			/**
			 * Add a member to the interface. With one of the built in annotations.
			 *
			 * The possible annotations are
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.Default = 0x0
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.Deprecated = 0x1
			 *    - AllJoyn.InterfaceDescription.AnnotationFlags.NoReply = 0x2
			 *
			 * If Default annotation flag is used no annotations will be added to the method.
			 *
			 * Using the Depricated annotation flag will add the org.freedesktop.DBus.Depricated=true
			 * annotation to the method. This annotation is an indication that the method has been
			 * depricated.
			 *
			 * Using the NoReply annotation flag will add the org.freedesktop.DBus.Method.NoReply=true
			 * annotation to the method. If this annotation is set don't expect a reply to the method
			 * call.
			 *
			 * The Depricated and NoReply annotation flags can be ORed together to add both annotations.
			 *
			 * To add other annotations use the InterfaceDescription.AddMemberAnnotation method.
			 *
			 * @param name        Name of member.
			 * @param inputSig    Signature of input parameters or NULL for none.
			 * @param outSig      Signature of output parameters or NULL for none.
			 * @param argNames    Comma separated list of input and then output arg names used in annotation XML.
			 * @param annotation  Annotation flags.
			 *
			 * @return
			 *      - QStatus.OK if successful
			 *      - QStatus.BUS_MEMBER_ALREADY_EXISTS if member already exists
			 */
			public QStatus AddMethod(string name, string inputSig, string outSig, string argNames, AnnotationFlags annotation)
			{
				return AddMember(Message.Type.MethodCall, name, inputSig, outSig, argNames, annotation);
			}