コード例 #1
0
 /// <summary>
 /// An outlook data source needs components to:
 /// 1. Convert outlook item to SyncML content of certain data format, say SIF or vCard
 /// 2. Convert SyncML content to outlook item
 /// 3. Get common outlook functions of outlook items of certain item type.
 /// 4. Deletion log for certain item type.
 ///
 /// This constructor basically wire all needed components. A derived class should deside what concrete components to use.
 /// </summary>
 ///<param name="app">Outllok application generally from Outlook plug-in.</param>
 protected OutlookDataSourceBase(Application app,
                                 OutlookToSyncMLX <T> outlookToSyncMLX,
                                 SyncMLXToOutlook <T> syncMLToOutlook,
                                 OutlookItems <T> outlookContacts,
                                 DeletionLog deletionLog)
 {
     OutlookApp            = app;
     this.outlookItems     = outlookContacts;
     this.syncMLToOutlook  = syncMLToOutlook;
     this.outlookToSyncMLX = outlookToSyncMLX;
     this.deletionLog      = deletionLog;
 }
コード例 #2
0
 protected OutlookToSyncMLX(OutlookItems <T> outlookItems, OutlookItemsWithSyncContent <T> sifAgent, DeletionLog deletionLog)
 {
     SifAgent          = sifAgent;
     this.outlookItems = outlookItems;
     this.deletionLog  = deletionLog;
 }
コード例 #3
0
 protected SyncMLXToOutlook(OutlookItems <T> outlookAgent, OutlookItemsWithSyncContent <T> sifAgent)
 {
     this.sifAgent     = sifAgent;
     this.outlookAgent = outlookAgent;
 }