public KwsSetUserProperty(WorkspaceManager wm, Workspace kws, UInt32 userId, String newPwd) : base(wm) { m_kws = kws; m_targetUserId = userId; m_stringParam = newPwd; }
public BaseImportKwsOp(WorkspaceManager wm, KwsCredentials creds, String folderPath, bool joinFlag) : base(wm) { m_folderPath = folderPath; m_joinFlag = joinFlag; m_sh = new KwsSpawnOpHelper(this, creds); }
public OutlookEventProxy(WorkspaceManager wm, Workspace kws) { m_Wm = wm; m_Kws = kws; Debug.Assert(m_Kws.EventProxy == null); m_Kws.EventProxy = this; m_Kws.OnEventReceived += EventReceivedHandler; }
public OutlookWorkspaceSubscribeOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm) { RegisterOutlookRequest(request); }
public OutlookStartScreenShareOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm) { RegisterOutlookRequest(request); }
public KwmInviteOp(WorkspaceManager wm, Workspace kws, String invitees, bool skipFirstPageFlag) : base(wm, kws) { Invitees = invitees; SkipFirstPage = skipFirstPageFlag; }
public OutlookInviteOp(WorkspaceManager wm, Workspace kws, WmOutlookRequest request) : base(wm, kws) { RegisterOutlookRequest(request); }
/// <summary> /// Initialization code common to both the deserialized and /// non-deserialized cases. This method MUST be called explicitly /// when the object is deserialized. Note that deserialized /// applications are added to the application tree before this method /// is called. This method can throw. /// </summary> public void Initialize(WorkspaceManager wm) { m_wm = wm; Sm = new KwsStateMachine(wm, this); KasEventHandler = new KwsKasEventHandler(this); KasLoginHandler.SetRef(wm, this); // Create the missing applications when the workspace is created // or when some applications have not been deserialized properly. CreateMissingApp(); // Create the workspace state directory. Directory.CreateDirectory(KwsRoamingStatePath); // Create the workspace state directory. Directory.CreateDirectory(KwsLocalStatePath); }
/// <summary> /// Set the reference to the WM and workspace. /// </summary> public void SetRef(WorkspaceManager wm, Workspace kws) { m_wm = wm; m_kws = kws; }
public OutlookSkurlKwsOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm, request, true) { }
public OutlookNewKwsOp(WorkspaceManager wm, WmOutlookRequest request, bool publicKwsFlag) : base(wm) { m_publicKwsFlag = publicKwsFlag; RegisterOutlookRequest(request); }
public KwsStateMachine(WorkspaceManager wm, Workspace kws) { m_wm = wm; m_kws = kws; }
public KwsBrowser(WorkspaceManager wm) { m_wm = wm; // Create the root folder and the primary folder. RootNode = new KwsBrowserFolderNode(""); RootNode.PermanentFlag = true; PrimaryFolder = AddFolder(RootNode, "My Teamboxes"); PrimaryFolder.PermanentFlag = true; }
public WmUiBroker(WorkspaceManager wm) { m_wm = wm; m_mainForm = new frmMain(); m_trayMessage = new TrayMessage(wm); Browser = new KwsBrowser(wm); }
public WmOutlookBroker(WorkspaceManager wm) { m_wm = wm; WmWinRegistry.OnRegistryWritten += new EventHandler(HandleOnRegistryWritten); }
public KwsCoreOp(WorkspaceManager wm) { Wm = wm; }
public WmStateMachine(WorkspaceManager wm) { m_wm = wm; m_wkb = new WmKcmBroker(); m_kcm = new KasCommunicationManager(m_wkb, HandleKcmCompletion); m_wkb.Initialize(m_wm, m_kcm); m_wakeupTimer.TimerWakeUpCallback = HandleTimerWakeUp; m_lastSerializationDate = DateTime.Now; }
public BaseNewKwsCoreOp(WorkspaceManager wm) : base(wm) { Creds.AdminFlag = true; m_sh = new KwsSpawnOpHelper(this, Creds); m_ih = new KwsInviteOpHelper(this, Creds); }
/// <summary> /// Non-deserializing constructor. This constructor can throw. /// </summary> public Workspace(WorkspaceManager wm, WmKas kas, UInt64 internalID, KwsCredentials creds) { Kas = kas; InternalID = internalID; CoreData.Credentials = creds; if (creds != null) Debug.Assert(Kas.KasID.CompareTo(creds.KasID) == 0); Initialize(wm); SetDirty(); }
public KwmCreateKwsOp(WorkspaceManager wm, KwsBrowserFolderNode parentNode, String kwsName) : base(wm) { m_parentNode = parentNode; Creds.KwsName = kwsName; }
public BaseInviteOp(WorkspaceManager wm, Workspace kws) : base(wm) { m_kws = kws; m_ih = new KwsInviteOpHelper(this, m_kws.CoreData.Credentials); }
public KwmImportKwsOp(WorkspaceManager wm, KwsCredentials creds, String folderPath, bool joinFlag) : base(wm, creds, folderPath, joinFlag) { }
public OutlookLookupRecAddrOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm) { KwsCredentials creds = new KwsCredentials(); creds.SecureFlag = true; m_ih = new KwsInviteOpHelper(this, creds); m_ih.FillInviteParamsFromOutlookLookupRecCmd(request.Cmd); RegisterOutlookRequest(request); }
public OutlookCreateKwsOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm, request, false) { }
public TrayMessage(WorkspaceManager wm) { m_wm = wm; InitializeComponent(); InitShowProperties(); }
public OutlookJoinKwsOp(WorkspaceManager wm, WmOutlookRequest request) : base(wm, new KwsCredentials(), wm.UiBroker.Browser.PrimaryFolder.FullPath, true) { RegisterOutlookRequest(request); }
/// <summary> /// Substitute for the constructor to allow KCM to be created /// appropriately by the WM. /// </summary> public void Initialize(WorkspaceManager wm, KasCommunicationManager kcm) { m_wm = wm; m_kcm = kcm; }
/// <summary> /// This method is called by the program initialization code to create /// an empty workspace manager or deserialize an existing one from disk. /// It returns null if the program should exit. /// </summary> public WorkspaceManager Spawn() { WorkspaceManager wm = null; // Open or create the database. OpenLocalDbIfRequired(); // Fill the list of deserializers. FillDsrList(); // Try to find a deserializer for the KWM. FindDeserializer(); // We found a deserializer. if (KwmDsr != null) { // Try to deserialize. KwmDsr.Deserialize(); // The deserialization failed completely or partially. if (KwmDsr.Status != KwmDeserializationStatus.Full) { // Tell the user. TellUserAboutDsrFailure(); // If the user doesn't want to recover, bail out. if (!RecoverFlag) return null; // Create the backup directory. if (Directory.Exists(BackupPath)) Directory.Delete(BackupPath, true); Directory.CreateDirectory(BackupPath); // Backup the files. KwmDsr.BackupState(BackupPath); } // The deserialization succeeded completely or partially. // We now have a deserialized WM instance. if (KwmDsr.Status != KwmDeserializationStatus.None) wm = KwmDsr.WmDsr.Wm; } // We don't have a workspace manager. Create a new one. if (wm == null) { wm = new WorkspaceManager(); wm.Initialize(LocalDb); } // Ask the workspace manager to clean up its state before // start up. wm.Sm.HandlePreStart(); // If we didn't deserialize the KWM fully, or if we used an // obsolete deserializer, set everything dirty and serialize // everything to stabilize our state. if (KwmDsr == null || KwmDsr.Status != KwmDeserializationStatus.Full || !(KwmDsr is DbKwmDeserializer)) { wm.Serialize(true); } // Clean up any cruft left by obsolete serializers. if (KwmDsr != null) KwmDsr.CleanUp(); return wm; }