mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
36 lines
985 B
C
36 lines
985 B
C
|
//
|
||
|
// LNStandardVersionComparator.h
|
||
|
// Sparkle
|
||
|
//
|
||
|
// Created by Andy Matuschak on 12/21/07.
|
||
|
// Copyright 2007 Andy Matuschak. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#ifndef LNSTANDARDVERSIONCOMPARATOR_H
|
||
|
#define LNSTANDARDVERSIONCOMPARATOR_H
|
||
|
|
||
|
#import "LNVersionComparisonProtocol.h"
|
||
|
|
||
|
/*!
|
||
|
@class
|
||
|
@abstract Sparkle's default version comparator.
|
||
|
@discussion This comparator is adapted from MacPAD, by Kevin Ballard. It's "dumb" in that it does essentially string comparison, in components split by character type.
|
||
|
*/
|
||
|
@interface LNStandardVersionComparator : NSObject<LNVersionComparison> { }
|
||
|
|
||
|
/*!
|
||
|
@method
|
||
|
@abstract Returns a singleton instance of the comparator.
|
||
|
*/
|
||
|
+(LNStandardVersionComparator*)defaultComparator;
|
||
|
|
||
|
/*!
|
||
|
@method
|
||
|
@abstract Compares version strings through textual analysis.
|
||
|
@discussion See the implementation for more details.
|
||
|
*/
|
||
|
-(NSComparisonResult)compareVersion:(NSString*)versionA toVersion:(NSString*)versionB;
|
||
|
@end
|
||
|
|
||
|
#endif
|