Beispiel #1
0
 public vObjectProperty(String prname, vObject owner)
 {
     _propowner = owner;
     _propname  = prname;
     _par       = new ArrayList();
     _enc       = _propowner.ObjectEncoding;
 }
Beispiel #2
0
 public EndDateTime(vObject owner, ISODateTime dt) : base("DTEND", owner)
 {
     _val = dt;
 }
 public DateTimeCompleted(vObject owner,ISODateTime dt):base("COMPLETED",owner)
 {
     _val=dt;
 }
 public ProductID(vObject owner,TextValue prid): base("PRODID",owner)
 {
     _val=prid;
 }
 public Status(vObject owner,StatusValue.PosVal vl): base("STATUS",owner)
 {
     _val=new StatusValue(vl);
 }
 public ExtensionProperty(String pn,vObject owner): base(pn,owner)
 {
     _val=new TextValue();
 }
 public Priority(vObject owner,PriorityValue vl):base("PRIORITY",owner)
 {
     _val=vl;
 }
 public StartDateTime(vObject owner):base("DTSTART",owner)
 {
     _val=new ISODateTime();
 }
Beispiel #9
0
 public Priority(vObject owner, PriorityValue vl) : base("PRIORITY", owner)
 {
     _val = vl;
 }
Beispiel #10
0
 public Priority(vObject owner, int pr) : base("PRIORITY", owner)
 {
     _val = new PriorityValue(pr);
 }
Beispiel #11
0
 public StartDateTime(vObject owner, String ds) : base("DTSTART", owner)
 {
     _val = new ISODateTime(ds);
 }
Beispiel #12
0
 public GeographicPosition(vObject owner) : base("GEO", owner)
 {
     _val = new GeographicCoordinates();
 }
Beispiel #13
0
 public StartDateTime(vObject owner, ISODateTime dt) : base("DTSTART", owner)
 {
     _val = dt;
 }
Beispiel #14
0
 public StartDateTime(vObject owner) : base("DTSTART", owner)
 {
     _val = new ISODateTime();
 }
Beispiel #15
0
 public EndDateTime(vObject owner, String ds) : base("DTEND", owner)
 {
     _val = new ISODateTime(ds);
 }
 public DueDateTime(vObject owner,String ds):base("DUE",owner)
 {
     _val=new ISODateTime(ds);
 }
 public EndDateTime(vObject owner,ISODateTime dt):base("DTEND",owner)
 {
     _val=dt;
 }
Beispiel #18
0
 public Summary(vObject owner) : base("SUMMARY", owner)
 {
     _val = new TextValue();
 }
 public StartDateTime(vObject owner,String ds):base("DTSTART",owner)
 {
     _val=new ISODateTime(ds);
 }
Beispiel #20
0
 public GeographicPosition(vObject owner, GeographicCoordinates crd) : base("GEO", owner)
 {
     _val = crd;
 }
 public Summary(vObject owner): base("SUMMARY",owner)
 {
     _val=new TextValue();
 }
Beispiel #22
0
 public Summary(vObject owner, String st) : base("SUMMARY", owner)
 {
     _val = new TextValue(st);
 }
 public OptionalProperty(String pn,vObject owner): base(pn,owner)
 {
     _val=new TextValue();
 }
Beispiel #24
0
 public ExtensionProperty(String pn, vObject owner) : base(pn, owner)
 {
     _val = new TextValue();
 }
 public NameProperty(vObject owner,String nm): base("N",owner)
 {
     _val=new TextValue(nm);
 }
Beispiel #26
0
 public OptionalProperty(String pn, vObject owner) : base(pn, owner)
 {
     _val = new TextValue();
 }
 public DateTimeCreated(vObject owner,ISODateTime vl): base("DCREATED",owner)
 {
     _val=vl;
 }
Beispiel #28
0
 public Status(vObject owner) : base("STATUS", owner)
 {
     _val = new StatusValue();
 }
 public Description(vObject owner): base("DESCRIPTION",owner)
 {
     _val=new TextValue();
 }
Beispiel #30
0
 public Status(vObject owner, StatusValue.PosVal vl) : base("STATUS", owner)
 {
     _val = new StatusValue(vl);
 }
 public DueDateTime(vObject owner,ISODateTime dt):base("DUE",owner)
 {
     _val=dt;
 }
Beispiel #32
0
 public NameProperty(vObject owner) : base("N", owner)
 {
     _val = new TextValue();
 }
 public EndDateTime(vObject owner):base("DTEND",owner)
 {
     _val=new ISODateTime();
 }
Beispiel #34
0
 public NameProperty(vObject owner, String nm) : base("N", owner)
 {
     _val = new TextValue(nm);
 }
 public EndDateTime(vObject owner,String ds):base("DTEND",owner)
 {
     _val=new ISODateTime(ds);
 }
Beispiel #36
0
 public ProductID(vObject owner) : base("PRODID", owner)
 {
     _val = new TextValue();
 }
 public StartDateTime(vObject owner,ISODateTime dt):base("DTSTART",owner)
 {
     _val=dt;
 }
Beispiel #38
0
 public ProductID(vObject owner, TextValue prid) : base("PRODID", owner)
 {
     _val = prid;
 }
 public Priority(vObject owner,int pr):base("PRIORITY",owner)
 {
     _val=new PriorityValue(pr);
 }
Beispiel #40
0
 public DateTimeCreated(vObject owner) : base("DCREATED", owner)
 {
     _val = new ISODateTime();
 }
 public GeographicPosition(vObject owner): base("GEO",owner)
 {
     _val=new GeographicCoordinates();
 }
Beispiel #42
0
 public DateTimeCreated(vObject owner, ISODateTime vl) : base("DCREATED", owner)
 {
     _val = vl;
 }
 public Summary(vObject owner,String st): base("SUMMARY",owner)
 {
     _val=new TextValue(st);
 }
Beispiel #44
0
 public DateTimeCreated(vObject owner, String sd) : base("DCREATED", owner)
 {
     _val = new ISODateTime(sd);
 }
 public GeographicPosition(vObject owner,GeographicCoordinates crd): base("GEO",owner)
 {
     _val=crd;
 }
Beispiel #46
0
 public Description(vObject owner) : base("DESCRIPTION", owner)
 {
     _val = new TextValue();
 }
 public Status(vObject owner): base("STATUS",owner)
 {
     _val=new StatusValue();
 }
Beispiel #48
0
 public DateTimeCompleted(vObject owner, ISODateTime dt) : base("COMPLETED", owner)
 {
     _val = dt;
 }
 public NameProperty(vObject owner): base("N",owner)
 {
     _val=new TextValue();
 }
Beispiel #50
0
 public DateTimeCompleted(vObject owner, String ds) : base("COMPLETED", owner)
 {
     _val = new ISODateTime(ds);
 }
 public ProductID(vObject owner): base("PRODID",owner)
 {
     _val=new TextValue();
 }
Beispiel #52
0
 public PropertyComposite(String nm, vObject own) : base(nm, own)
 {
     _GrName     = nm;
     Owner       = own;
     _Properties = new ArrayList();
 }
 public DateTimeCreated(vObject owner): base("DCREATED",owner)
 {
     _val=new ISODateTime();
 }
Beispiel #54
0
 public void AddEntity(vObject ent)
 {
     _Entities.Add(ent);
 }
 public DateTimeCreated(vObject owner,String sd): base("DCREATED",owner)
 {
     _val=new ISODateTime(sd);
 }
Beispiel #56
0
        public override void ParseFromStream(StreamReader sr)
        {
            String tkn = "";

            while (true)
            {
                tkn = Parser.GetToken(sr);
                if (tkn == "END")
                {
                    tkn = Parser.GetToken(sr);
                    if (tkn != ":")
                    {
                        throw new InvalidDocumentStructureExeption();
                    }
                    tkn = Parser.GetToken(sr);
                    if (tkn != "VCALENDAR")
                    {
                        throw new InvalidDocumentStructureExeption();
                    }
                    return;
                }

                vObjectProperty pr = null;
                switch (tkn)
                {
                case "BEGIN":
                {
                    tkn = Parser.GetToken(sr);
                    if (tkn != ":")
                    {
                        throw new InvalidDocumentStructureExeption();
                    }
                    tkn = Parser.GetToken(sr);
                    vObject ent = null;
                    if (tkn == "VEVENT")
                    {
                        ent = new vEvent();
                    }
                    if (tkn == "VTODO")
                    {
                        ent = new vTodo();
                    }
                    if ((tkn != "VEVENT") && (tkn != "VTODO"))
                    {
                        throw new InvalidDocumentStructureExeption();
                    }
                    ent.ParseFromStream(sr);
                    AddEntity(ent);
                    break;
                }

                case "GEO":
                    pr = new GeographicPosition(this);
                    break;

                case "PRODID":
                    pr = new ProductID(this);
                    break;

                case "TZ":
                    pr = new TZone(this);
                    break;

                case "VERSION":
                    pr = new SpecificationVersion(this);
                    break;

                default:
                    if (tkn.Substring(0, 2) == "X-")                          // Extention property
                    {
                        pr = new ExtensionProperty(tkn, this);
                    }
                    else                              // Comment this if optional properties support is not required
                    {
                        pr = new OptionalProperty(tkn, this);
                    }
                    break;
                }
                if (pr != null)
                {
                    pr.ParseFromStream(sr);
                    SetProperty(pr);
                }
            }
        }
 public DateTimeCompleted(vObject owner,String ds):base("COMPLETED",owner)
 {
     _val=new ISODateTime(ds);
 }
 public DueDateTime(vObject owner):base("DUE",owner)
 {
     _val=new ISODateTime();
 }
 public LastModified(vObject owner): base("LAST-MODIFIED",owner)
 {
     _val=new ISODateTime();
 }
Beispiel #60
0
 public EndDateTime(vObject owner) : base("DTEND", owner)
 {
     _val = new ISODateTime();
 }