<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
  <Id>9e4a7bb7-093b-4097-913e-7bd76cd545ee</Id>
  <Version>1.0.0.2</Version>
  <ProviderName>pQCee Pte Ltd</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="SafeQuard for Outlook"/>
  <Description DefaultValue="Post-Quantum Email Encryption"/>
  <IconUrl DefaultValue="https://pqceesqee.z23.web.core.windows.net/assets/safequard-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://pqceesqee.z23.web.core.windows.net/assets/safequard-128.png"/>
  <SupportUrl DefaultValue="https://www.pqcee.com/pages/contact"/>
  <AppDomains>
    <AppDomain>https://pqceesqee.z23.web.core.windows.net</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://pqceesqee.z23.web.core.windows.net/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>

            <!-- Message Read -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>

                  <!-- Decrypt and View Button -->
                  <Control xsi:type="Button" id="msgReadDecryptAndViewButton">
                    <Label resid="DecryptAndViewButton.Label"/>
                    <Supertip>
                      <Title resid="DecryptAndViewButton.Label"/>
                      <Description resid="DecryptAndViewButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>decryptAndView</FunctionName> 
                    </Action>
                  </Control>

                  <!-- Decrypt and Download Button -->
                  <Control xsi:type="Button" id="msgReadDecryptAndDownloadButton">
                    <Label resid="DecryptAndDownloadButton.Label"/>
                    <Supertip>
                      <Title resid="DecryptAndDownloadButton.Label"/>
                      <Description resid="DecryptAndDownloadButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>decryptAndDownload</FunctionName> 
                    </Action>
                  </Control>

                </Group>
              </OfficeTab>
            </ExtensionPoint>


            <!-- Message Compose -->
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeCmdGroup">
                  <Label resid="GroupLabel"/>

                  <Control xsi:type="Button" id="msgComposeEncryptBothButton">
                    <Label resid="EncryptBothButton.Label"/>
                    <Supertip>
                      <Title resid="EncryptBothButton.Label"/>
                      <Description resid="EncryptBothButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>encryptBoth</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msgComposeEncryptMsgButton">
                    <Label resid="EncryptMsgButton.Label"/>
                    <Supertip>
                      <Title resid="EncryptMsgButton.Label"/>
                      <Description resid="EncryptMsgButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>encryptMsg</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msgComposeEncryptAttachButton">
                    <Label resid="EncryptAttachButton.Label"/>
                    <Supertip>
                      <Title resid="EncryptAttachButton.Label"/>
                      <Description resid="EncryptAttachButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>encryptAttach</FunctionName>
                    </Action>
                  </Control>

                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>

        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://pqceesqee.z23.web.core.windows.net/assets/safequard-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://pqceesqee.z23.web.core.windows.net/assets/safequard-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://pqceesqee.z23.web.core.windows.net/assets/safequard-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://pqceesqee.z23.web.core.windows.net/commands.html"/>
        </bt:Urls>
        
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="SafeQuard for Outlook"/>
          <bt:String id="EncryptBothButton.Label" DefaultValue="Encrypt Both"/>
          <bt:String id="EncryptMsgButton.Label" DefaultValue="Encrypt Message"/>
          <bt:String id="EncryptAttachButton.Label" DefaultValue="Encrypt Attachments"/>
          <bt:String id="DecryptAndViewButton.Label" DefaultValue="Decrypt and View"/>
          <bt:String id="DecryptAndDownloadButton.Label" DefaultValue="Decrypt and Download"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="EncryptBothButton.Tooltip" DefaultValue="Encrypt both message and attachments with SafeQuard"/>
          <bt:String id="EncryptMsgButton.Tooltip" DefaultValue="Encrypt message with SafeQuard"/>
          <bt:String id="EncryptAttachButton.Tooltip" DefaultValue="Encrypt attachments with SafeQuard"/>
          <bt:String id="DecryptAndViewButton.Tooltip" DefaultValue="Decrypt and view attachments."/>
          <bt:String id="DecryptAndDownloadButton.Tooltip" DefaultValue="Decrypt and Download attachments"/>
        </bt:LongStrings>

      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>