~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/libpsi/tools/mac_dock/mac_dock.mm

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2014-07-01 21:49:34 UTC
  • mfrom: (6.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20140701214934-gt4dkgm94byi4vnn
Tags: 0.15-1
* New upstream version
* set debhelper compat level to 9
* set Standards-Version to 3.9.5 (no further changes)
* add lintian override regarding license-problem-non-free-RFC
* use qconf to regenerate configure script
* implement hardening using buildflags instead of hardening-wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <Cocoa/Cocoa.h>
 
2
 
 
3
#include "mac_dock.h"
 
4
 
 
5
#include "privateqt_mac.h"
 
6
 
 
7
static NSInteger requestType = 0;
 
8
 
 
9
void MacDock::startBounce()
 
10
{
 
11
        requestType = [NSApp requestUserAttention:NSCriticalRequest];
 
12
}
 
13
 
 
14
void MacDock::stopBounce()
 
15
{
 
16
        if (requestType) {
 
17
                [NSApp cancelUserAttentionRequest:requestType];
 
18
                requestType = 0;
 
19
        }
 
20
}
 
21
 
 
22
void MacDock::overlay(const QString& text)
 
23
{
 
24
        [[NSApp dockTile] setBadgeLabel:(NSString *)QtCFString::toCFStringRef(text)];
 
25
}